Discussion:
Block a file by Commitinfo?
Rez P
2009-07-15 04:40:47 UTC
Permalink
Hello everyone



Is there any way to prevent users or developers from uploading and checking in certain files into cvs? I was reading the somewhat ambiguous examples on ximbiot and doesn't look I could do this. I would like to block Windows thumbs.db and desktop.ini files from uploading to the server.



Thanks



Rez

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
Paul Sander
2009-07-15 07:21:53 UTC
Permalink
Your commitinfo script is given a list of paths to files about to be
committed. Check each file in that list against your naming
conventions. Exit with a non-zero status if any of them fail to meet
your requirements.

This will cause the entire commit to fail, and the user will have rm
their additions before the commit will succeed.

It would be better if CVS had an addinfo capability, though...
Post by Rez P
Hello everyone
Is there any way to prevent users or developers from uploading and
checking in certain files into cvs? I was reading the somewhat
ambiguous examples on ximbiot and doesn't look I could do this. I
would like to block Windows thumbs.db and desktop.ini files from
uploading to the server.
Thanks
Rez
Hotmail® has ever-growing storage! Don’t worry about storage limits.
Check it out.
--
The cool thing about definitions is that they can be anything you
want, by definition!
Paul Sander
***@wakawaka.com
Rez P
2009-07-16 03:38:21 UTC
Permalink
Thanks for your reply. It's the lack of detailed examples in ximbiot or many cvs manuals that have me confused. What I'm not clear about is that could I write fully qualifies shell scripts into cvs' reserved files?



I need an example please.



e.g.

ALL thumbs*?????
Subject: Re: Block a file by Commitinfo?
Date: Wed, 15 Jul 2009 00:21:53 -0700
Your commitinfo script is given a list of paths to files about to be
committed. Check each file in that list against your naming
conventions. Exit with a non-zero status if any of them fail to meet
your requirements.
This will cause the entire commit to fail, and the user will have rm
their additions before the commit will succeed.
It would be better if CVS had an addinfo capability, though...
Post by Rez P
Hello everyone
Is there any way to prevent users or developers from uploading and
checking in certain files into cvs? I was reading the somewhat
ambiguous examples on ximbiot and doesn't look I could do this. I
would like to block Windows thumbs.db and desktop.ini files from
uploading to the server.
Thanks
Rez
Hotmail® has ever-growing storage! Don’t worry about storage limits.
Check it out.
--
The cool thing about definitions is that they can be anything you
want, by definition!
Paul Sander
_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
Yaron Yogev
2009-07-15 07:23:40 UTC
Permalink
Post by Rez P
Hello everyone
Is there any way to prevent users or developers from uploading and checking in certain files into cvs?  I was reading the somewhat ambiguous examples on ximbiot and doesn't look I could do this.  I would like to block Windows thumbs.db and desktop.ini files from uploading to the server.
Hello Rez,

There are many pre-commit validations that one can think of.
One of them is banning commit of specific files. Another is checking
for unwanted content (e.g. -d debug flag for Perl CGI files).

There is more than one way you can choose for doing this:
1) Add a line in commitinfo per each banned file
2)
Rez P
2009-07-16 03:40:06 UTC
Permalink
Thanks for your reply. I'll play around and see what I'll come up with.
Date: Wed, 15 Jul 2009 00:23:40 -0700
Subject: Re: Block a file by Commitinfo?
Post by Rez P
Hello everyone
Is there any way to prevent users or developers from uploading and checking in certain files into cvs? I was reading the somewhat ambiguous examples on ximbiot and doesn't look I could do this. I would like to block Windows thumbs.db and desktop.ini files from uploading to the server.
Hello Rez,
There are many pre-commit validations that one can think of.
One of them is banning commit of specific files. Another is checking
for unwanted content (e.g. -d debug flag for Perl CGI files).
1) Add a line in commitinfo per each banned file
Jim Hyslop
2009-07-15 12:17:39 UTC
Permalink
Post by Rez P
ambiguous examples on ximbiot and doesn't look I could do this. I would
like to block Windows thumbs.db and desktop.ini files from uploading to
the server.
http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs_18.html#SEC191

- --
Jim Hyslop
Dreampossible: Better software. Simply. http://www.dreampossible.ca
Consulting * Mentoring * Training in
C/C++ * OOD * SW Development & Practices * Version Management
Rez P
2009-07-16 03:42:57 UTC
Permalink
Thank you Sir. This is exactly what I needed.
Date: Wed, 15 Jul 2009 08:17:39 -0400
Subject: Re: Block a file by Commitinfo?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
ambiguous examples on ximbiot and doesn't look I could do this. I would
like to block Windows thumbs.db and desktop.ini files from uploading to
the server.
http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs_18.html#SEC191
- --
Jim Hyslop
Dreampossible: Better software. Simply. http://www.dreampossible.ca
Consulting * Mentoring * Training in
C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpdyOMACgkQLdDyDwyJw+OiqACg0MdClejpk+rQz/jHFG3yHBm9
dBgAoKrDhr1kYXXuKSp3l9+uypgWWKzU
=v9wx
-----END PGP SIGNATURE-----
_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
Loading...