[cvsnt] Re: help with regex in module2
Tony Hoyle
tmh at nodomain.org
Fri Sep 10 19:00:06 BST 2004
Nicolás Donoso wrote:
> Hi,
>
> I try to use module2 file with regex but i have same problems, i think tha
> i'm write an wrong regex:
>
> My repository tree:
>
> cvsrep/
> ...........dir1/
> ...................dir2/
> ..........................dir4/
> .................................dir7/
> .................................dir8/
> ..........................dir5/
> ..........................dir6/
> ..........................file1.txt
> ..........................file2.txt
> ..........................file3.txt
>
> where all directories conteins files
>
> My module2 file
>
> [myModule2]
> / = dir1/dir1 (file1.txt$|dir4/*$)
>
> then I expect to get de following tree when checkout myModule2
>
> myModule2/
> ...................dir4/
> ..........................dir7/
> ..........................dir8/
> ....................file1.txt
>
> but i only get :
>
> myModule2/
> ...................dir4/
> ....................file1.txt
>
The regex only applies to a single filename (btw the regex as written
doesn't make a lot of sense - you've just said 'anything beginning dir4
with zero or more slashes' which is a bit redundant).
Try something like:
[myModule2]
/ = dir1/dir1 (^file1.txt$)
dir4 = dir1/dir4
Tony
More information about the cvsnt
mailing list