Hi Yuki
I'm trying to show a pdiff in the changeset.ChangeSet dialog. pdiff is a
command from the pbranch extension which shows the diff between two
revisions as a patch. It also decorates the patch with a message, username,
and commit date.
So far my best attempt is to call "hg pdiff" and send the output to a named
file, which can then be showed as a patch.
However I would rather send the output to a temporary file (without a name)
and pass a file object to the summary panel. For example by modifying
changeset.ChangeSet.load_patch_details so it would call
self.summarypanel.update(patch_file_object, self.patchstyle)
Unfortunately csinfo seems to have a convention that converts target to a
string -- which makes it impossible to pass a file object along instead of a
file name.
Maybe you can give me a hint on how to get the content of a temporary patch
file into csinfo?
Regards,
Peer
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop