[Top][All Lists]

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

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

From: Aaron Bentley
Subject: Re: [Gnu-arch-users] revert a mistakenly commited patch
Date: Mon, 05 Apr 2004 17:23:55 -0400
User-agent: Mozilla Thunderbird 0.5 (X11/20040309)

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.


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

GNU arch home page:

Aaron Bentley
Director of Technology
Panometrics, Inc.

reply via email to

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