|
From: | Aaron Bentley |
Subject: | Re: [Gnu-arch-users] leaving changeset for commit hook? |
Date: | Fri, 21 May 2004 18:39:23 -0400 |
User-agent: | Mozilla Thunderbird 0.5 (X11/20040306) |
Michael Poole wrote:
Would it be possible to announce the prepared changeset's location to one of the commit hooks?
The prepared changeset isn't stored near the project tree when the hooks are invoked. The precommit hook is invoked before the changeset has been generated. The commit hook is invoked after the changeset has been moved to the archive.
People used to the CVS syncmail script expect to see file diffs in the commit email. Currently, the only way to do this is to get-changeset the changes and then show-changeset it.
Not the only way. "tla changes PREVIOUS_REVISION" should do the trick.
It would be nice if a commit hook could avoid the extra repository transaction to show diffs.
Well, both of these can be used to compare the current directory to the revision library, but the cost is an extra changeset generation, which may or may not be slower than an extra archive transation.
Aaron
[Prev in Thread] | Current Thread | [Next in Thread] |