Solved

Backtracking a Branch in CVS

Posted on 2002-04-07
4
305 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Six Sigma Control Plans

726 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