Usage question about bzrlib.builtins.cmd_diff
Matt Drew
matt.drew at steeprockinc.com
Wed Mar 9 21:06:00 UTC 2011
I can run this command from the command line:
bzr diff filename -r1..2
to generate a diff between file filename as it existed at revision 1 and revision 2.
I want to do the same thing from python. I tried this:
import bzrlib.builtins
bzrlib.builtins.cmd_diff().run(file_list=['filename'])
which gives the diffs between the current working file and the last-checked-in version. I have tried a number of options to get the "-r1..2" to work using the revision argument or the diff_options argument, but nothing has worked yet. Any hints?
Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20110309/406cf6db/attachment.html>
More information about the bazaar
mailing list