gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] revert a mistakenly commited patch


From: Milan Cvetkovic
Subject: Re: [Gnu-arch-users] revert a mistakenly commited patch
Date: Tue, 06 Apr 2004 08:47:53 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425

Thanks to all for quick responses.

Milan.

Aaron Bentley wrote:
The easier way to do what you did is:
$ tla replay --reverse `tla tree-version`--patch-1
$ tla sync-tree `tla tree-version`--patch-1
$ editor `tla make-log'
$ tla commit

There is also an aba command, "revert" that does the same thing.

Aaron

Milan Cvetkovic wrote:

I thought I saw the answer to this somewhere, but I cannot find it any more.

I made a group of changes to my tree, and I commited them to arch repository. The commit created a new patch, for example patch-1. Then I realize the patch was a big mistake, and I want to "undo" it.

I know that I cannot remove patch-1 from the archive.

What I ended up doing is:

$ tla patchset patch-1 ../patch-1
$ cp {arch}/..../deep/in/side/.../patch-1 ../patch-1.log
$ tla replay --reverse ../patch-1
$ cp ../patch-1.log {arch}/..../deep/in/side/.../patch-1
$ editor `tla make-log'
$ tla commit

This creates patch-2 with the content exactly the same as base-0, with the patchlogs for patch-1 and patch-2.

I dod not really like to manipulate {arch} directory directly.

Is there a better way to "undo a commited revision"?

Thanks, Milan.



_______________________________________________
Gnu-arch-users mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/gnu-arch-users

GNU arch home page:
http://savannah.gnu.org/projects/gnu-arch/








reply via email to

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