Clean way to get the incoming revisions as changectx and a diffstat?

Arne Babenhauserheide arne_bab at web.de
Fri Jun 8 02:53:08 CDT 2012


Hi,

(resent from the users list)

How can I gat the incoming revisions as clean ctx from Python in an
efficient way which works for all kinds of repositories?

I have been hacking a bit at the site extension, and when trying to
implement fork-status with incoming and outgoing, I ran into problems:
I adapted code from hg.py¹ and found out too late that that way
only worked for some repos.

¹: See getoutgoing in http://draketo.de/proj/hgsite/src/f5eca94540bd68b97187878c62ad1939731a228f/site.py.html - it’s from hg._incoming, doesn‘t work with bitbucket-http-repos (@mpm: sorry for the wrong module-name in the mail to the users list).

Also I did not see how to create a diffstat without resorting to dispatch… see ctxdiffstat with its evil FIXME… 

I would be grateful for any help with cleaning it up!

To get the code just hg clone http://draketo.de/proj/hgsite

Best wishes,
Arne


More information about the Mercurial-devel mailing list