Solved

Backtracking a Branch in CVS

Posted on 2002-04-07
4
281 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now