[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Backtracking a Branch in CVS

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 …
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…

649 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