Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Block a file by Commitinfo?

0 views
Skip to first unread message

Rez P

unread,
Jul 15, 2009, 12:40:47 AM7/15/09
to CVS
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.

Paul Sander

unread,
Jul 15, 2009, 3:21:53 AM7/15/09
to Rez P, CVS
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...

On Jul 14, 2009, at 9:40 PM, Rez P wrote:

> 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
pa...@wakawaka.com

Yaron Yogev

unread,
Jul 15, 2009, 3:23:40 AM7/15/09
to
On Jul 15, 7:40 am, Rez P <pon...@hotmail.com> wrote:
> 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) From commitinfo call a script or application with the directory
path & name of commited file (and perhaps committed version), and let
it do the validation. This is the method we use in Jungo.

HTH,
--
Yaron Yogev
IT Software Developer
Jungo Software Technologies

Jim Hyslop

unread,
Jul 15, 2009, 8:17:39 AM7/15/09
to Rez P, CVS
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rez P wrote:
> 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-----


Rez P

unread,
Jul 15, 2009, 11:38:21 PM7/15/09
to pa...@wakawaka.com, CVS
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*?????

 
> From: pa...@wakawaka.com
> To: pon...@hotmail.com
> Subject: Re: Block a file by Commitinfo?
> Date: Wed, 15 Jul 2009 00:21:53 -0700
> CC: info...@nongnu.org
>
> 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...
>
> On Jul 14, 2009, at 9:40 PM, Rez P wrote:
>
> > 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
> pa...@wakawaka.com
>
>
>



Insert movie times and more without leaving Hotmail®. See how.

Rez P

unread,
Jul 15, 2009, 11:40:06 PM7/15/09
to yar...@jungo.com, CVS
Thanks for your reply. I'll play around and see what I'll come up with.

 
> From: yar...@jungo.com
> Date: Wed, 15 Jul 2009 00:23:40 -0700
> To: info...@nongnu.org
> Subject: Re: Block a file by Commitinfo?
>

Windows Live™: Keep your life in sync. Check it out.

Rez P

unread,
Jul 15, 2009, 11:42:57 PM7/15/09
to jhysl...@dreampossible.ca, CVS
Thank you Sir. This is exactly what I needed.
 
> Date: Wed, 15 Jul 2009 08:17:39 -0400
> From: jhysl...@dreampossible.ca
> To: pon...@hotmail.com
> CC: info...@nongnu.org

> Subject: Re: Block a file by Commitinfo?
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Rez P wrote:
> > 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-----

0 new messages