[cvsnt] Re: Commitinfo trigger script data?
John Kinson
cvs at yellowradio.com
Wed Aug 11 13:06:29 BST 2004
Thanks Tony, so all that's needed now (apart from rename information) is
for the commitinfo and verifymsg manual pages to mention that the
scripts are invoked in a temporary directory containing the tree of
files being committed, and that a script can determine revision
information and whether a file has been added, modified or removed by
querying the local CVS/Entries files directly if needed, as covered in
http://www.cvsnt.org/manual/Working-directory-storage.html.
Cheers
JK
Tony Hoyle wrote:
> On Wed, 11 Aug 2004 11:59:00 +0100, John Kinson <cvs at yellowradio.com>
> wrote:
>
>
>>- The CVS/Entries file in the temporary sandbox can be used to obtain
>>information about the files being committed. Each line in the file has
>>5 fields with the following format:
>>
>> /<filename>/<old rev>/<old timestamp>/?/T<sticky tag>
>>
>><old timestamp> is in GMT (UTC?). Not sure what's in the fourth field,
>>it's always been empty in my experiments. <old rev> is 0 for new files,
>>negative for removed files (with the absolute value equal to the
>>revision removed), and positive for modified files.
>
>
> http://www.cvsnt.org/manual/Working-directory-storage.html
>
> For a client-side script the repository information is always local.
>
>
>>- The new revision number for a file, if needed in a trigger script, can
>>be predicted by looking up the branch tag in the repository ,v file as
>>necessary (won't go into it here, but it seems straightforward enough).
>
>
> It's probably not a good idea to predict revision numbers (the user
> may have specified -r). It's not useful information prior to a commit
> actually happening though.
>
>
>>I've not considered what happens when files are renamed though, so this
>>information may need to be revised accordingly.
>
>
> That information is in the 'Renames' file, but I've not put that in
> the documentation yet.
>
> Tony
>
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
--
http://www.yellowradio.com/
If technology doesn't seem like magic,
it's probably obsolete.
More information about the cvsnt
mailing list