1 σχόλιο »

    • #1
    • Giorgos Keramidas
    • It’s trivial to add an option to “hg export” that includes more context lines. The code to pass-through all the diff specific options is already there, so all you have to do is to modify “mercurial/commands.py” a bit, to allow the extra options of the diffopts[] vector in “hg export”.

      I have just patched my crew-based snapshot of Mercurial and pushed a patch that does precisely this at:

      http://hg.hellug.gr/mercurial/gker/rev/8dfab511e9b2

      Don’t pull *all* the changes from that branch, because I have some local changes that affect “hg manifest” output and other bits that are probably a bit unsafe for general consumption.

      Changeset 8dfab511e9b2 should be moderately “safe” though.

      With this patch installed, it should be easy to review the full file by specifying a context size that is large enough, i.e.:

      $ hg export -U100000 97:105 | less

      If you still like seeing the changes in meld, I’m sure there is some way to feed patches with much larger context to meld, kdiff or some other patch viewer.

      I’ll try to add an option to the web interface too, so that one can “hg serve -p 9000″, fire up a browser, and be able to “expand” a file in the changeset viewer. This may be nice to push upstream too :D


Comment!




Feel free to express yourselves!

Please read the comment policy before commenting.

Your email address will never be published. It is only asked to send you a personal email if needed. I hate spam too.

XHTML tags allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped=""> . For block quotes use <blockquote>.

 


Reduce textarea size Increase textarea size


 
π
Last post: March 4 2011, 20:12 UTC