[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnu-arch-users] revert a mistakenly commited patch
From: |
Milan Cvetkovic |
Subject: |
[Gnu-arch-users] revert a mistakenly commited patch |
Date: |
Mon, 05 Apr 2004 16:53:20 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425 |
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] revert a mistakenly commited patch,
Milan Cvetkovic <=