[Top][All Lists]

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

[Monotone-devel] Re: Undo a commit

From: Ludovic Brenta
Subject: [Monotone-devel] Re: Undo a commit
Date: Fri, 10 Oct 2008 12:17:26 +0200
User-agent: Internet Messaging Program (IMP) 3.2.2

Selon Daniel Carrera <address@hidden>:
> Ludovic Brenta wrote:
> > That's where my trick comes in: manually edit _MTN/revision without
> > changing anything else in your workspace, then kill the head
> Ok. So let's see that process again:
> ## Current revision: aaaaaaaaaa
> $ mtn commit
> ## Current revision: bbbbbbbbbb
> ## Ooops, wrong commit.
> $ vi _MTN/revisions  ## Edit this file.
> $ mtn db kill_rev_locally bbbbbbbbbb
> Did I get it right?

Yes, that's right.

> Now, how do I edit _MTN/revisions? It appears to contain 2-3 hashes:
> When I run mtn status I see the same hash as old_revision. So in my 
> example above I would set old_revision to aaaaaaaaaa. But what do I do
> with the other hashes?

Change the old_revision and leave the others alone.

Ludovic Brenta.

reply via email to

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