[p4] rolling back
David Weintraub
qazwart at gmail.com
Tue Feb 6 06:49:15 PST 2007
> I must say that I'm a little surprised by this. Why isn't there a
> 1-liner to apply the changelist in reverse? Even the venerable CVS
> offers (equivalent to) this functionality.
That's an interesting question. I think it has more to do with basic
design decisions. For example, you can simply modify a file in CVS
without first marking it for editing. CVS has no equivalent of the "p4
edit" command. Of course, that means whenever you do any operation in
CVS (such as an update or commit), CVS has to go through the entire
working directory tree, examining each file, and comparing it to the
source archive which makes CVS a lot slower than Perforce in most
operations.
Of course that means you have manually open each file you need to
revert for editing before it can be changed. Thus, having to examine
the changelist, open those files manually, then do a sync and resolve.
Meanwhile, as you mentioned before, you can revert back to a previous
archive state in CVS with a single command.
Another design decision is the way Perforce handles branching. In
Perforce, the branch is a directory while in CVS, it's stored inside
the source archive file. Most developers prefer Perforce's method
since its easier to understand and allows you to have multiple
branches in the same Perforce client. However, the "p4 integrate"
command doesn't work integrating the same branch to itself (which is
what CVS is doing when it rolls back a set of changes).
On 2/5/07, Steve M. Robbins <steve at sumost.ca> wrote:
> On Mon, Feb 05, 2007 at 07:27:30PM -0500, David Weintraub wrote:
> > Not too much of an issue if these are indeed the most recent and
> > you've done no integration. The full directions can be found in Tech
> > Note #14 <http://www.perforce.com/perforce/technotes/note014.html>. It
> > basically involves sync'ing back to the earlier version, checking the
> > files that were changed for edit, sync'ing to the head, and resolving
> > the changes with a "p4 resolve -ay".
>
> I must say that I'm a little surprised by this. Why isn't there a
> 1-liner to apply the changelist in reverse? Even the venerable CVS
> offers (equivalent to) this functionality.
>
> -S
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
--
--
David Weintraub
qazwart at gmail.com
More information about the perforce-user
mailing list