Discussion:
Unlearning default CVS ignore pattern
Peter Toft
2011-01-25 10:10:16 UTC
Permalink
Hi guys

At e.g. http://www.network-theory.co.uk/docs/cvsmanual/cvsignore.html
we see that CVS has a default set of patters for ignoring files;
RCS SCCS CVS CVS.adm
RCSLOG cvslog.*
tags TAGS
.make.state .nse_depinfo
*~ #* .#* ,* _$* *$
*.old *.bak *.BAK *.orig *.rej .del-*
*.a *.olb *.o *.obj *.so *.exe
*.Z *.elc *.ln
core

I have a project, where I need CVS to also consider .so-files.
How is it possible to unlearn/change the default ignore patterns?
Either in the distribution side or in user land...

Best
--
Peter Toft, PhD
http://petertoft.dk
Bulgrien, Kevin
2011-01-25 14:04:08 UTC
Permalink
Post by Peter Toft
At e.g. http://www.network-theory.co.uk/docs/cvsmanual/cvsignore.html
we see that CVS has a default set of patters for ignoring files;
<snip />
Post by Peter Toft
I have a project, where I need CVS to also consider .so-files.
How is it possible to unlearn/change the default ignore patterns?
Either in the distribution side or in user land...
See "The administrative files".

http://ximbiot.com/cvs/manual/cvs-1.12.13/cvs_2.html#SEC20
Bulgrien, Kevin
2011-01-25 14:05:49 UTC
Permalink
Post by Peter Toft
Post by Peter Toft
At e.g.
http://www.network-theory.co.uk/docs/cvsmanual/cvsignore.html
Post by Peter Toft
we see that CVS has a default set of patters for ignoring files;
<snip />
Post by Peter Toft
I have a project, where I need CVS to also consider .so-files.
How is it possible to unlearn/change the default ignore patterns?
Either in the distribution side or in user land...
See "The administrative files".
http://ximbiot.com/cvs/manual/cvs-1.12.13/cvs_2.html#SEC20
Bulgrien, Kevin
2011-01-25 14:22:47 UTC
Permalink
Post by Peter Toft
At e.g. http://www.network-theory.co.uk/docs/cvsmanual/cvsignore.html
we see that CVS has a default set of patters for ignoring files;
<snip />
Post by Peter Toft
I have a project, where I need CVS to also consider .so-files.
How is it possible to unlearn/change the default ignore patterns?
Either in the distribution side or in user land...
http://www.network-theory.co.uk/docs/cvsmanual/cvsignore.html

"In any of the 5 places listed above, a single exclamation mark ('!') clears the ignore list. This can be used if you want to store any file which normally is ignored by CVS."

cd ~
mkdir -p test/repo test/sandbox
cvs -d ~/test/repo init
cd ~/test/sandbox
cvs -d ~/test/repo co .
Post by Peter Toft
boo.so
cvs -nq update
cd CVSROOT
echo "!" >cvsignore
cvs add cvsignore
cvs commit -m 'Disable default ignores' cvsignore
cd ..
cvs -nq update

$ bash test
cvs checkout: Updating .
cvs checkout: Updating CVSROOT
U CVSROOT/checkoutlist
U CVSROOT/commitinfo
U CVSROOT/config
U CVSROOT/cvswrappers
U CVSROOT/loginfo
U CVSROOT/modules
U CVSROOT/notify
U CVSROOT/postadmin
U CVSROOT/postproxy
U CVSROOT/posttag
U CVSROOT/postwatch
U CVSROOT/preproxy
U CVSROOT/rcsinfo
U CVSROOT/taginfo
U CVSROOT/verifymsg
cvs add: scheduling file `cvsignore' for addition
cvs add: use `cvs commit' to add this file permanently
/home/kbulgrien/test/repo/CVSROOT/cvsignore,v <-- cvsignore
initial revision: 1.1
cvs commit: Rebuilding administrative file database
? boo.so

There you have it.

---
Kevin Bulgrien

This message and/or attachments may include information subject to GD Corporate Policy 07-105 and is intended to be accessed only by authorized personnel of General Dynamics and approved service providers. Use, storage and transmission are governed by General Dynamics and its policies. Contractual restrictions apply to third parties. Recipients should refer to the policies or contract to determine proper handling. Unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender and destroy all copies of the original message.
Mike Pumford
2011-01-25 12:47:08 UTC
Permalink
Post by Peter Toft
Hi guys
At e.g. http://www.network-theory.co.uk/docs/cvsmanual/cvsignore.html
we see that CVS has a default set of patters for ignoring files;
RCS SCCS CVS CVS.adm
RCSLOG cvslog.*
tags TAGS
.make.state .nse_depinfo
*~ #* .#* ,* _$* *$
*.old *.bak *.BAK *.orig *.rej .del-*
*.a *.olb *.o *.obj *.so *.exe
*.Z *.elc *.ln
core
I have a project, where I need CVS to also consider .so-files.
How is it possible to unlearn/change the default ignore patterns?
Either in the distribution side or in user land...
At least in the versions I've used I don't know if there is a way to do
that. You can override the default ignore list for cvs import operations
with:

cvs import -I !

I think for non-import operations you are going to have to trust your
users to add the .so files without the prompting of the CVS with ? lines
in the cvs update output.

You could build yourself a custom version with a different built in
ignore list without too much difficulty if that becomes a problem.

Mike

Loading...