[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Re: Undo a commit
From: |
Daniel Carrera |
Subject: |
Re: [Monotone-devel] Re: Undo a commit |
Date: |
Fri, 10 Oct 2008 11:53:45 +0200 |
User-agent: |
Thunderbird 2.0.0.17 (Macintosh/20080914) |
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 revision.
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? Now, how do I edit _MTN/revisions? It appears to
contain 2-3 hashes:
% cat _MTN/revision
format_version "1"
new_manifest [b271905b34a9287cf767d09096f01b765ca17ecd]
old_revision [dcfbf59823cf21e292b60ba8f8463f65ea383597]
add_file "foo"
content [da39a3ee5e6b4b0d3255bfef95601890afd80709]
------------
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?
Thanks,
Daniel.
- Re: [Monotone-devel] Re: Undo a commit, (continued)
- Re: [Monotone-devel] Re: Undo a commit, Daniel Atallah, 2008/10/10
- [Monotone-devel] Re: Undo a commit, Bruce Stephens, 2008/10/10
- Message not available
- Re: [Monotone-devel] Re: Undo a commit, Ludovic Brenta, 2008/10/10
- Re: [Monotone-devel] Re: Undo a commit, Thomas Keller, 2008/10/10
- [Monotone-devel] Re: Undo a commit, Ludovic Brenta, 2008/10/10
- Re: [Monotone-devel] Re: Undo a commit, Brian May, 2008/10/12
- Re: [Monotone-devel] Re: Undo a commit, Thomas Keller, 2008/10/12
- Re: [Monotone-devel] Re: Undo a commit,
Daniel Carrera <=
- [Monotone-devel] Re: Undo a commit, Ludovic Brenta, 2008/10/10
- Re: [Monotone-devel] Re: Undo a commit, Nathaniel Smith, 2008/10/09
- [Monotone-devel] Re: Undo a commit, Lapo Luchini, 2008/10/09