thg does not work if specifying files inside a subdirectory
Created originally on Bitbucket by bugnano (Franco Bugnano)
Please see Issue #2405 (closed) for more information.
Anyway, for test purposes, I have created a new repository in the directory
/home/fri/prova
Inside that repository I have created a subdirectory named dir1 and a new file named file1.txt
and both the commands:
echo '/home/fri/prova/dir1/file1.txt' | thg add --listfile - --nofork
and
thg add /home/fri/prova/dir1/file1.txt
fail with the error:
dir1/file1.txt: No such file or directory
Yuya Nishira pointed out that the quickop dialog, open by thg add|forget|remove|revert, still relies on cwd = repo.root, but os.chdir() hack was removed at 89fa569323e3, and suggested me to file a new issue.
This bug makes the nautilus extension completely unusable.