monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Re: mtnpatch


From: Justin Patrin
Subject: [Monotone-devel] Re: mtnpatch
Date: Fri, 2 Jun 2006 23:40:12 -0700

On 5/27/06, Justin Patrin <address@hidden> wrote:
Forgive the crosspost, but I figured both of these lists would like to
know about this. I've written a little python script to parse the
output of mtn diff and output the patch and monotone commands to apply
the patch correctly to the working copy, including renames, drops, and
adds. I haven't *tested* it fully as yet (not quite sure about the
patch command) but it should work.

The point of this is to have a way to do cherrypicking between two
branches without lots of manual work and without having to sync all
changes. I know that OpenEmbedded is in dire need of such a thing so
this should be very helpful.

I have not yet implemented any kind of stdin functionality and this
script does not actually run anything, it only outputs the commands
that need to be run. This is mainly for easy sanity checking. I have
implemented only one option, -R, to output the reverse.

http://oe.reversefold.com/mtnpatch.txt

The space handling within filenames is also not nearly right, but it
can be fixed.

Please be kind, this is my first real bit of python coding.


Shall I take it that noone is interested in this, then? I figured from
much of what has been said lately in OpenEmbedded regarding branches
that someone would feel this is useful for moving data from revisions
across branches without propagating.

--
Justin Patrin




reply via email to

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