Solved

Backtracking a Branch in CVS

Posted on 2002-04-07
4
289 Views
Last Modified: 2007-02-13
Hi You Guys.

Does anyone know how I can backtrack to a date on a branch?   (on CVS)

I'm in a pickle right now...
I've been working on a branch for a while, now
I want to resort back to a date on that branch.
But I find I can't backtrack to a date on a branch!!???
I can only do it on the Main Trunk.


please help?
Thanks guys

Brian Sharpe.
Pandromeda.
www.pandromeda.com
brian@pandromeda.com
0
Comment
Question by:briansharpe
  • 2
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 300 total points
ID: 6924798
do you mean that following does not work:

   cvs update -D "2002-02-02" file
0
 

Author Comment

by:briansharpe
ID: 6926671

cvs update -D "2002-02-02" file

This command can only roll a file back on the MainTrunk.
So I get the file at date 2002-02-02 as it was on the
main trunk.  Not how it was on 2002-02-02 on my branch.

I can kinda do it with revision numbers.
But this is insanely tedious, even for 1 file.
And I'm working on a project with about 1200 files.  So this is not an option for me.

But the fact that it can be done (albeit tedious) via revision numbers, leads me to believe that there must be an easier way.

Thanks anyways!!!!
Brian Sharpe.
0
 

Author Comment

by:briansharpe
ID: 6927415

Ah Ha!!!!!  I've Got it!!

Its all because I had the
"Get Clean Copy" option on.

With this option on, It seemed to
always grab the file from the main trunk,
and ignore the branch I was on.

With it turned off, the update is
working fine.
I'm now back on track with my code

Thanks heaps
Brian.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6927465
this is what the man-page says that you need take care for the -P option when using -D
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
A short article about problems I had with the new location API and permissions in Marshmallow
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question