info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS won't update with latest revision


From: Rohan Nandode
Subject: Re: CVS won't update with latest revision
Date: Sun, 14 Mar 2004 15:43:49 +0530
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

Hi,
I don't think putting update -A in .cvsrc would be good option. It will override every update command. also probably give problems when you want to update to some specific version(cvs update -A -r ??), as you did.

As there wouldn't be any sticky tag to files by default, hence normal update should work.

-Rohan

g murkumar wrote:
Thanks Rohan
Would it make send then to add update -A in my .cvsrc file. Since it would normally make sense to expect the cvs
upadte command to freshen up the files in the
directories with the latest revisions of the file
..right?
I mean thats what cvs update is normally used for.
Please advise.
Thanks again

--- Rohan Nandode <address@hidden> wrote:

You would have to use -A flag while updating the
file.
the command would be
$cvs update -A uartsw.c

The reason is, when you update with -r, a sticky tag
is attached to the file. you can see it in "cvs status " command.
The sticky tag information is stored in CVS/Entries
in the local checkout. So even it you delete the file the cvs will update on the sticky tag version.

-A option removes any sticky tag present and updates
with latest version.

-Rohan

g murkumar wrote:

Hello
I am having cvs update a directory with the latest
version of a certain file. This is the sequence of event
1)I checkout out a old version of the file(i

needed to

compile an old build)
cvs update -r 1.1 uartsw.c
this command worked fine, I got the r1.1 revision
2)I then wanted to revert back to the latest
version(r1.4) of the file. So  I deleted the file
uartsw.c and did cvs update
The output was:
$cvs update
cvs update .
cvs update: Updating .
M demo.hex
cvs update: warning: uartsw.c was lost
U uartsw.c

BUT to my suprise the CVS put back that OLD
revision(r1.1) of the file that i checked out in

step

'1' . I expected it to put revision r1.4 (the

latest

revision)
Accdg to the manual: 'cvs update',  updates the
directory with the most recent commited

revision(which

in my case is r1.4). But it didnt do that in my

case

it put the old r1.1. Also just as a sidenote I
remember doing cvs checkout -r 1.1 uartsw.c I mistakedly thought this was the way to retrieve

an

old revision of a file. But then i saw the website

and

did step 1(cvs update -r 1.1 uartsw.c) instead.

Did my

cvs checkout command have anything to do with the
problem?
thanks



__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less

spam

http://mail.yahoo.com


_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs





__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com







reply via email to

[Prev in Thread] Current Thread [Next in Thread]