[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Newbie Wants to Print List of Tagged Files
From: |
Andy Baker |
Subject: |
RE: Newbie Wants to Print List of Tagged Files |
Date: |
Thu, 13 Sep 2001 15:57:13 +0100 |
It's not pretty, but this'll give you what you want...
$ cvs -n co -p -rmytag2 . 2>&1 1>/dev/null | awk '/^Che/ {f=$3}
/^VER/ {printf("%s %s\n",f,$2)}'
Aj
-----Original Message-----
From: Gary Farmer [mailto:address@hidden
Sent: 12 September 2001 21:46
To: address@hidden
Subject: Newbie Wants to Print List of Tagged Files
I am just learning CVS. I have created a repository and
put some files into it. I have associated tags "mytag"
and "mytag2" with various versions of some files. I would
like to print a list of the filenames and revision numbers,
but cannot figure out how.
The manual seems to indicate the "log" command can to
something like what I want. If I execute "cvs log",
it prints all the information about all the files in
the repository. The manual indicates I can use the
"-r" option to print information about files with
specific tags. However, when I execute "cvs log -rmytag2",
it still prints out information on all the files, even
those without tag "mytag2". What I would really like
is just a list of the (filename, revision number) pairs
with the specified tag. For example:
dir1/file1 1.1
dir1/file2 1.3
dir2/filex 2.1
How can I get this?
Thanks in advance,
Gary Farmer
_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs
NOTICE AND DISCLAIMER:
This email (including attachments) is confidential. If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents. We cannot accept liability for any breaches of
confidence arising through use of email. Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions. We will not accept responsibility for any commitments
made by our employees outside the scope of our business. We do not warrant
the accuracy or completeness of such information.