On Wed, Nov 11, 2009 at 23:03, Peer Sommerlund
<[email protected]> wrote:
> 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
>

[resend, I sent previous mail from unregistered email address]

Hmm... why you want to pass file object instead of file path?
If the temporary patch file generated by "hg pdiff" is valid,
"changeset.ChangeSet.load_patch_details()" and "summarypanel.update()"
will show its content correctly.

-- 
Yuki KODAMA

------------------------------------------------------------------------------
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

Reply via email to