Next: , Previous: I need to move files around without losing revision history, Up: Some Real Life Problems (With Solutions)


How can I get a list of all tags in a project?

Currently, there is no convenient way to do this in CVS. The lack is sorely felt by all users, and I believe work is under way to make this feature available. By the time you read this, a cvs tags command or something similar may be available.

Until then, there are workarounds. You can run cvs log -h and read the sections of the output following the header symbolic names:. Or, if you happen to be on the repository machine, you can just look at the beginnings of some of the RCS files directly in the repository. All of the tags (branches and nonbranches) are listed in the symbols field:

     floss$ head /usr/local/newrepos/hello.c,v
     head	2.0;
     access;
     symbols
     	Release_1_0:1.22
     	Exotic_Greetings-2:1.21
     	merged-Exotic_Greetings-1:1.21
     	Exotic_Greetings-1:1.21
     	merged-Exotic_Greetings:1.21
     	Exotic_Greetings-branch:1.21.0.2
     	Root-of-Exotic_Greetings:1.21
     	start:1.1.1.1
     	jrandom:1.1.1;
     locks; strict;
     comment	@ * @;
Karl Fogel wrote this book. Buy a printed copy via his homepage at red-bean.com

copyright  ©  August 24 2019 sean dreilinger url: https://durak.org/sean/pubs/software/cvsbook/How-can-I-get-a-list-of-all-tags-in-a-project_003f.html