IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Does CVS really not have a hook for this?
We wanted to configure CVS so that you cannot make commits to a certain directory without a commit message that matched a specific pattern. It seems that there are 3 basic hooks that I have to implement this:

  1. commitinfo is told the files that are being committed, but not the commit message. It can decide to deny the commit. You can control which CVS modules a given script runs against.
  2. verifyinfo is told the commit message, but not the files. It can decide to deny the commit. You can control which CVS modules a given script runs against.
  3. loginfo is told the commit message and files. But it can't decide to deny the commit since it happens after the commit. You can control which CVS modules a given script runs against.

A CVS module seems to be a root directory in a repository. You can't make it (at least not in an easy, obvious way) an arbitrary subdirectory.

So there are 3 properties that I need (file, commit message, ability to deny the commit), and 3 available hooks. Since there are 3 ways that it could suck for my needs, naturally each sucks in a different way!

Gah.

Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
New CVS isn't really all that good with directories
Hence Subversion, natch.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Thought not, how easy is it to convert?
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
New I've never done a conversion
There are scripts out there that people have used with varying degrees of success. The issue being, as I understand it, that all CVS trees do not necessarily follow the same naming and tagging conventions.

The easiest conversion, obviously, loses all of your change history. I doubt that this is a desired situation for you, though. :-P
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Um, no...
Losing 5 years of history would not be a desired event.

Cheers,
Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
Expand Edited by ben_tilly July 14, 2005, 04:57:54 PM EDT
New You should investigate Subversion hooks first
It looks like this [link|http://www.powertrip.co.za/blog/archives/000387.html|http://www.powertrip...hives/000387.html] might be a good starting point.

A starting point for subversion hook information is at:
[link|http://svnbook.red-bean.com/en/1.1/ch05s02.html#svn-ch-5-sect-2.1|http://svnbook.red-b...svn-ch-5-sect-2.1]

Good luck,
Tony
New Not worth converting at the moment...
but I'll pass along the suggestion anyways. Their pre-commit looks like it does the right thing.

Cheers,
Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
     Does CVS really not have a hook for this? - (ben_tilly) - (6)
         CVS isn't really all that good with directories - (admin) - (5)
             Thought not, how easy is it to convert? -NT - (ben_tilly) - (4)
                 I've never done a conversion - (admin) - (1)
                     Um, no... - (ben_tilly)
                 You should investigate Subversion hooks first - (tonytib) - (1)
                     Not worth converting at the moment... - (ben_tilly)

Sounds like a horse. Maybe it was.
77 ms