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. -- Justin Patrin _______________________________________________ Oe mailing list [email protected] https://www.handhelds.org/mailman/listinfo/oe
