[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Backtracking a Branch in CVS

Posted on 2002-04-07
4
Medium Priority
?
322 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 1200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Loops Section Overview

830 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