Actions:
|
2012-04-24 04:48 AEST by Glen Starrett - I'm trying to set up a sample modules2 module to get a filter working based on
file -- starting with a "find all jpg files" type like the example before trying
to reverse it, but it's not working.
Am I doing something wrong here?
I started with an existing test module "testcvs" and added a new folder under
it, with some dummy files:
md unfiltered
cvs add unfiltered
cd unfiltered
echo hi > a.txt
copy a.txt a.jpg
copy a.txt a.xls
copy a.txt a.doc
cvs add *.*
cvs ci -m "Added files"
So far so good. Then I created a modules2 section and committed it (syntax is
just like the example in the modules2 file, but I also tried "(^\.jpg$)":
[test-filtered]
/ = testcvs/unfiltered (^jpg$)
Neither will filter any files. I just get a full listing of what's in
unfiltered when I run this.
C:\Users\Glen Starrett\Documents\test\stanley-test2\CVSROOT>cvs ls testcvs/unfil
tered
Listing module: testcvs/unfiltered
a.doc
a.jpg
a.txt
a.xls
C:\Users\Glen Starrett\Documents\test\stanley-test2\CVSROOT>cvs ls test-filtered
Listing module: test-filtered
a.doc
a.jpg
a.txt
a.xls
I also tried this, just to see if it would "break" it, but it produced the same
result:
[test-filtered]
/ = testcvs/unfiltered (ddpg)
System details:
C:\Users\Glen Starrett\Documents\test\stanley-test2\CVSROOT>cvs ver
Client: Concurrent Versions System (CVSNT) 2.8.01 (Soolin) Build 4395
(client/server)
Server: Concurrent Versions System (CVSNT) 2.8.01 (Soolin) Build 4377
(client/server)
Server is my Linux (Fedora something-or-other). I also tried it on Win7 server
(4395, local server to client) but got a worse result:
C:\Users\Glen Starrett\Documents\test\europa\cvsroot>cvs ci -m "Testing filter"
cvs commit: Examining .
? just_testing.bat
? ci.out.txt
Checking in modules2;
/myrepo/cvsroot/modules2,v <-- modules2
new revision: 1.2; previous revision: 1.1
done
cvsntsrv server: Rebuilding administrative file database
C:\Users\Glen Starrett\Documents\test\europa\cvsroot>cvs rls samp
Listing module: samp
hi.doc
hi1.txt
hi2.txt
hi3.txt
arg
foo
icotest
promo
samp
C:\Users\Glen Starrett\Documents\test\europa\cvsroot>cvs rls testfilt
cvsntsrv server: cannot find module `testfilt' - ignored
C:\Users\Glen Starrett\Documents\test\europa\cvsroot>cvs rls
Listing modules on server
CVSROOT
JazzBand
MHtest2
deeptest
fubar
samp
cvsntsrv [server aborted]: Couldn't open RCS file /myrepo/samp (^*doc$))/.direct
ory_history,v: Invalid argument
Here's the modules2 entry I used:
[testfilt]
/ = samp (^*doc$)) |
|
2012-04-24 04:50 AEST by Glen Starrett - Created an attachment (id=2357)
Linux server LS of modules2 module ignoring filter
|
|
2012-04-24 04:53 AEST by Glen Starrett - Created an attachment (id=2358)
Windows server rls test of modules2 module with error message
This one tries to open "C:/PROGRA~3/MARCHH~1/myrepo/samp
(^*doc$))/.directory_history,v" where the Linux server did not try this. Note
that Linux server was a different build (but still fairly recent). |
|
2012-04-25 01:46 AEST by Glen Starrett - OK, there was a typo in the Windows server case that caused that error message.
However, correcting it results in the same behavior as on Linux -- the server
just ignores the filter entirely. |
|
2012-04-25 01:48 AEST by Glen Starrett - Created an attachment (id=2360)
RLS debug output for modules2 on Windows server ignoring filter
|
|
2012-04-25 04:41 AEST by Glen Starrett - Found out that it's RLS / LS that is ignoring the file filter. Checkout works
properly. The following filter will checkout the subset of files that do NOT
include "txt":
[testfilt2]
/ = testing (^((?!txt).)*$)
Note that this will require further refinement to remove only *.txt files, this
will get rid of any with "txt" anywhere within the string.
|
|
2017-02-13 10:33 AEST by Arthur Barrett - *** Bug 7103 has been marked as a duplicate of this bug. *** |