[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing sticky tag 'HEAD' in cvs
From: |
Frederic Brehm |
Subject: |
Re: Removing sticky tag 'HEAD' in cvs |
Date: |
Wed, 04 Jun 2003 15:18:02 -0400 |
At 01:14 PM 6/4/2003, Eric Siegerman wrote:
Occasionally one might want a sticky tag on HEAD -- probably not
for an entire sandbox, but for a file or two. This came up a
couple of months ago:
http://mail.gnu.org/archive/html/info-cvs/2003-04/msg00023.html
(The only reason I didn't suggest typing exactly "-r HEAD" is
that I didn't think of it at the time...)
Hmmm. Let me see if I understand this.
Typing the command
cvs update -r HEAD file.c
will cause the following behavior (until the sticky tag is changed):
1. Updating file.c from the repository will always work.
2. Committing a changed file.c to the repository will never work.
So, how would I use it? For example, suppose I need to add some temporary
code to a file for debugging or to make some kind of measurement. If I
"update -r HEAD" then I can prevent the temporary code from accidently
polluting the repository. When I'm done, remove the file and "update -A"
(assuming there were no changes of value in the file).
Sweet!
Fred
_______________________________________________________________
Frederic W. Brehm, Sarnoff Corporation, http://www.sarnoff.com/