monotone-devel
[Top][All Lists]
Advanced

[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 17:43:23 +0200
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

Bruce Stephens wrote:
Ludovic Brenta <address@hidden> writes:
I would prefer a single-purpose command, "mtn rebase -r <rev>", that only
rewrites the old_revision field in _MTN/revision...

That's not what "git rebase" does.  It's exactly (modulo changes to
the index, which I guess don't apply to monotone) what "git reset"
does (with --mixed, which is the default).

(Perhaps "rebase" is a suitable name for this; git's not particularly
consistent with anything else (in particular "git revert" does what
"mtn disapprove" does, which causes confusion occasionally).)

I think "rebase" is a good name for Ludovic's solution. Monotone already has the concept of "base revision" (e.g. get_base_revision_id) and "rebase" sounds like "change base revision". So it would be internally consistent. In turn, to me "reset" send a very different message.

Daniel.




reply via email to

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