[cvsnt] Why is cvs update -A -r tag not possible?

Glen Starrett grstarrett at cox.net
Tue Jun 24 17:57:54 BST 2003

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

It sounds like he might want to revert to a previous version.  If that is
the case, then simply update your sandbox with the head version then do a

cvs update -jHEAD -j1.5 foo.c

for example to revert back to version 1.5, then you can commit to HEAD again
no problem.  Please forgive if the syntax isn't exactly correct, I don't use
that command very often, but it is documented in the command reference.

If that isn't the case, then let us know what it is you're trying to
accomplish and there is likely a way to do it that makes sense.


Glen Starrett

-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org]On Behalf
Of Oliver Giesen
Sent: Tuesday, June 24, 2003 2:36 AM
To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
Subject: Re: [cvsnt] Why is cvs update -A -r tag not possible?

> Is this right: If I update my working directory by a static tag, there
> is no way
> to remove sticky tags (even not with the -A option).

Sure you could remove the sticky tag with the -A option. However, what
update -A really does is retrieve the tip of the trunk. Thus, in your
scenario you're not guaranteed to have the same revision in your sandbox as
before as the sticky revision you used before might no longer be the HEAD
revision (i.e. tip of the trunk).

>If I made changes
> on my
> local copy and want to commit it back to the repository, first I have to
> create
> a branch, commit on that and later merge back to the main trunk.

Not necessarily, if the tagged revision already is the HEAD revision you
could commit right away after removing the sticky tag. If it is not then
yes, you would either have to create a branch first or merge your local
changes with the HEAD revision (which happens automatically when you do
update -A on a locally modified file). Did you read that FAQ entry I posted
in reply to your last post? It's all described in there.

> Why is cvs update -A -r <static_tag> not possible?

What would you expect it to do? It's a contradiction in itself. Update -A
means "remove sticky" while update -r essentially means "make sticky"
(unless the specified tag/rev is indeed a branch).

Hope this helps.

---- ------------------
JID: ogiesen at jabber.org
ICQ: 18777742

cvsnt mailing list
cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs

More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook