monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Re: Undo a commit


From: Bruce Stephens
Subject: [Monotone-devel] Re: Undo a commit
Date: Thu, 09 Oct 2008 15:06:02 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Daniel Carrera <address@hidden> writes:

> How do I undo a commit? I just made a commit and I just realized that
> the commit included a file that I did not want committed in this
> patch. What's the command to undo the last commit call? Is
> "disapprove" the right command? It looks like the closest thing,
> except that it keeps a history off the change and the undoing of the
> change. Is that right? Is that a feature?

Correct, and it's a feature.  You might alternatively commit the
corrected revision (to the parent), and add a "suspend" cert to the
wrong one.  That still leaves the change there, but it'll generally be
ignored.

You can also kill a revision in your local database (using db
kill_revision_locally).

(So there's no easy equivalent to amend-record, to amend a commit
(with the proviso that the user is responsible for the mess if the
commit has been propagated somewhere).  I don't know that there's any
strong reason for that---I think it's just that nobody's written one.)

[...]





reply via email to

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