info-cvs
[Top][All Lists]
Advanced

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

Re: cvs -n update -r TAG <- Can I get the version?


From: Jim Hyslop
Subject: Re: cvs -n update -r TAG <- Can I get the version?
Date: Thu, 09 Mar 2006 08:28:55 -0500
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Toft wrote:
> Often I use "cvs -n update -r TAG" to see which files will be updated
> when I update from the current version of my files to the release tag "TAG".
> What I do need also are the version numbers of the files.
[...]
> Any clues on how to get near my wish?

'cvs di -r TAG --brief' will give the revisions used:

$ cvs di -rHEAD --brief
Index: test.txt
===================================================================
RCS file: /cvs/cvs-test/test.txt,v
retrieving revision 1.12
retrieving revision 1.11
diff -u --brief -r1.12 -r1.11
Files /tmp/cvsOhGtSK and /tmp/cvsrSlA6W differ

You may want to write a script to make the output more concise.

Note that TAG should be a branch tag or HEAD in order for this to work
properly.

- --
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.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEEC2XLdDyDwyJw+MRAvIQAJ9LBgqvNwWB2C1zQPS+F0FKvYfKFwCgzxBs
Ob2MlbaYPmq4CIHLvhLidlQ=
=SqD0
-----END PGP SIGNATURE-----





reply via email to

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