fwiw, I've confirmed it is an issue with the fork, at least on my setup.

I can restore proper operation of

echo file_path | thg log --listfile -

by brute force hacking the fork away with a mod to portable_fork like this:

def portable_fork(ui, opts):
    opts["nofork"] = True  #hack!!!
    #(rest of function untouched)

I of course have no idea what preventing the fork will cause, but it seems
fine so far.

I'll file a bug.

Russ




On Tue, Feb 5, 2013 at 9:59 AM, Russell Warren <[email protected]> wrote:

> I'm running thg on linux from the stable branch (fcea9c8d41f0) and the
> "File History" context menu is not working properly for me.  It jumps
> straight to the workbench instead of showing the log for the file.
>
> Is this working for anyone else?
>
> I've tried debugging this for a few hours and, in my case, it seems to be
> a problem with thg not working correctly with the "--listfile -" that
> nautilus-thg.py is giving it.  I can replicate the problem manually...
>
> ie: "cat my_file_list.txt | thg log --listfile -" is going to the
> workbench instead of the log view.
>
> Debugging further, it seems that things go awry with the log call when
> portable_fork is executed.  The file list from stdin seems to be getting
> disposed of on the wrong side of the fork, and the operational log attempt
> is getting nothing.
>
> However - I've reached the end of where I can/should dig to.  I fear that
> this is being caused by a flaw in my setup vs an actual thg issue...  this
> is my first encounter with python-nautilus extensions (and thg code) so I'm
> in well over my head with this debugging run.
>
> Any help appreciated!
>
> My versions:
>
> TortoiseHg version 2.7+5-fcea9c8d41f0
>
> with Mercurial-2.4.2, Python-2.7.3, PyQt-4.9.3, Qt-4.8.2
>
>
> Russ
>
>


-- 
Russell Warren
Perspexis Technologies Inc.
613-882-1676

This information is confidential and intended solely for the use of the
individual or entity to whom it is addressed.
If you have received this email in error, please notify the sender
immediately.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to