Emacs integration - an overview
Dan Christensen
jdc at uwo.ca
Wed Aug 31 14:06:07 CDT 2005
Bryan O'Sullivan <bos at serpentine.com> writes:
> On Wed, 2005-08-31 at 14:18 -0400, Dan Christensen wrote:
>
>> But it happens because python's sys.getcwd returns the canonical path,
>> after expanding symlinks. Maybe the solution is for hg to use
>> os.path.realpath on all filenames?
>
> I don't think so. It's pretty expensive.
I think it would only be needed for absolute filenames specified on
the command line, right? So the speed should matter too much. But,
in any case,
os.path.realpath("/home/jdc/CayleyDickson/python")
only takes 0.57 milliseconds on my laptop, and 0.32 milliseconds
when given a path with no symlinks.
If hg doesn't get this feature, I wonder if mercurial.el can work
around this by either using relative pathnames, or using the
elisp equivalent of realpath before forking hg.
Dan
More information about the Mercurial
mailing list