info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rolling back to a previous revision per module


From: Nate Haggard
Subject: Re: Rolling back to a previous revision per module
Date: Tue, 20 Nov 2001 17:21:57 -0700

Thanks for the quick response. I should rephrase my question. Yes I want to move a whole module back in time. I don't need to keep the changes that were made after that time in the repository.
One way to do it is to do this:
cvs export -D "11/15" module
cd currentproject
cvs remove *
cp ../module/* .
cvs add *
cvs commit

I just know there is a better way to do it.

So the question is: How do I move a module back to a previous date and begin working on it as if I hadn't made any changes. I want to change the current working version and discard all the information that might come after it.

At 03:11 PM 11/20/2001 -0800, you wrote:
Hi Nate,


You say "module", do you really mean module or
do you mean an individual file?

If it is a whole module ( i.e. your top-level
directory ), each file inside a module has it's
own revision. You are better off doing it by
date ( see the -D flag to update in the manual ),
revisions aren't the right way to do this.

If you mean an individual file, here's an easy way
to pull revision 1.1 of filename.c onto your
working copy ( you would just need to commit
it, making a new revision, 1.6, that is equivalent
to 1.1 ) :

cvs update -pr 1.1 filename.c > filename.c




HTH,
Rob Helmer


On Tue, Nov 20, 2001 at 03:56:43PM -0700, Nate Haggard wrote:
> I want to roll a module back to revision 1.1 even though the current
> revision is 1.5. I don't even care about changes made since 1.1. Is there
> any way to go back to that point in a module while discarding all the
> changes made since 1.1?
>
> Thanks
> Nate
>
>
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs
>

_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]