On 2008-02-27 12:21, John Hein <[EMAIL PROTECTED]> wrote:
>Giorgos Keramidas wrote at 21:04 +0200 on Feb 27, 2008:
>> On 2008-02-27 08:36, John Hein <[EMAIL PROTECTED]> wrote:
>> > Can someone point me at a script that does tag renaming
>> > after a repo copy?
>> 
>> You don't really need a `script' to do this.
>> 
>> Tags in CVS are not versioned, so you can force-tag the repo-copied
>> files and move the tag to its new place.
>> 
>> For example if you have two files:
>> 
>>     foo.c,v
>>     bar.c,v
>> 
>> and bar.c,v is a repo-copy of foo.c,v then you move the tag only for the
>> bar.c file by checking it out, and running:
>> 
>>     cvs tag -f -r 1.2 bar.c
>
> ------------------------^^^ you're missing the tag name in this
> example, but...
>
>> This should force/move the tag to point revision 1.2.
> 
> I don't want to move the tag... I want to invalidate old tags by
> renaming them to something else (like foo-1-2-3 -> old_foo-1-2-3).

Ah, now I see.  Sorry for the confusion :/

> Note that just using cvs to rename a tag (by tagging with the new name
> and then removing the former name) has issues when you try to do that
> with branch tags.
> 
> Anyway, I'm pretty sure the FreeBSD cvs-meisters run something to
> invalidate tags after doing a repo copy.  That's the information I was
> looking for.

Scripting is probably risky for this sort of thing, but I'll let the CVS
meisters reply :)

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
  • cvs t... John Hein
    • ... Giorgos Keramidas
      • ... John Hein
        • ... Giorgos Keramidas
        • ... Amol Dharmadhikar i अमोल धर ्माध ीकारी
          • ... John Hein
    • ... Simon L. Nielsen
      • ... Dag-Erling Smørgrav
        • ... John E Hein
          • ... Dag-Erling Smørgrav
            • ... John E Hein
              • ... John E Hein
              • ... Dag-Erling Smørgrav
        • ... Simon L. Nielsen

Reply via email to