[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnu-arch] [bug #6059] support for per-directory categorization rege

From: nobody
Subject: [Bug-gnu-arch] [bug #6059] support for per-directory categorization regexps
Date: Sat, 08 Nov 2003 06:12:07 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20031010 Mozilla Firebird/0.6.1 StumbleUpon/1.76

=================== BUG #6059: LATEST MODIFICATIONS ==================

Changes by: Robert Collins <address@hidden>
Date: Sat 11/08/2003 at 11:12 (GMT)

            What     | Removed                   | Added
                  CC |                           | address@hidden

=================== BUG #6059: FULL BUG SNAPSHOT ===================

Submitted by: rfarine                 Project: GNU arch -- a revision control 
Submitted on: Sun 10/19/2003 at 23:21
Category:  tla                        Severity:  5 - Major                  
Bug Group:  small feature idea        Resolution:  None                     
Status:  Open                         Release:  
Fixed Release:                        Merge Request?:  yes -- merge from my 
Your Archive Name:  address@hidden Archive Location:                
Assigned to:  None                    

Summary:  support for per-directory categorization regexps

Original Submission:  address@hidden




        patch-8    (simple changeset)

          support for per-directory categorization regexps

A file named '.arch-inventory' can locally override the

common categorization regexps for entries in the directory

which contains it by redefining a subset or all of the

regexps defined in '=tagging-method' (exclude, junk,

backup, unrecognized, source).

While processing a directory with such a file, the

inventory process first tries all of the locally redefined

regexps and, if no one matches, it falls back to the common


Follow-up Comments

Date: Sat 11/08/2003 at 10:59       By: robertc
Merged into address@hidden/tla--integration--1.1--patch-2 and -3. On a code 
style note, it appears to me that the evaluation of the per dir and global 
regexs may be 'wrong'.

i.e. currently you evaluate:

dir, global X, for X in excludes, junk, backup etc etc.

This means that a per dir regex that is less strict for excludes cannot 
override a more strict global excludes (and likewise for backup, source etc).

So, I suggest that you change the order:

dir X for all X, followed by global X, for all X.

This could be neatly implemented via a subroutine that takes a pointer to the 
regexps struct, extracted appropriately from arch_inventory_traversal_internal.

I've merged your code anyway, to give folk 'out there' a starting point for 

Date: Sun 11/02/2003 at 01:48       By: rfarine
Merge upstream changes, provide inventory ids for

".arch-inventory" files and add a test case.





        patch-8    (simple changeset)

          support for per-directory categorization regexps

        patch-9    (simple changeset)

          merge from address@hidden

        patch-10    (simple changeset)

          name inventory ids for ".arch-inventory" files

        patch-11    (simple changeset)

          test case for per-directory regexps

CC List

CC Address                          | Comment
address@hidden             | 

No files currently attached

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]