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/