[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Bug tracking.

From: Zieg, Mark
Subject: RE: Bug tracking.
Date: Mon, 09 Dec 2002 09:37:43 -0500

> Yes, but what I would like is a uniqe commit number, whatever it may be,
> for instance applied to all the files involved in that single commit.

It should be pretty easy to write a wrapper script around "cvs commit" that
does this for you, if it's really what you want:

The only trick would be to generate a system-wide unique ID with each script
call.  This can be done either by rsh/ssh'ing some command on the CVS
server, which can thus have a locking program that issues unique serialIDs
(ie, "commit_578"), or use an algorithm which can generate unique IDs by
including the clients hostname or MAC address or something (ie,
"commit_bob_578").  If you already have a bug-tracking system, then you
probably have a SQL database, which can probably issue you nice new
timestamped records with an "AUTO_INCREMENT" primary key or something.
Anyway, there are lots of ways to do this; mail systems which store each
incoming message as a uniquely named file do this all the time.

Once you've generated the ID, have your script run "cvs commit" with using
the above ID as a tag value.

Wouldn't that more-or-less do what you want?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]