[PATCH] Fix the path problem on Windows that prevents to run hg from its own repository
Andrew Thompson
andrewkt at aktzero.com
Mon Jul 4 15:34:36 UTC 2005
Giuseppe Bilotta wrote:
> Ok, I tried a clean, fresh install with default locations. My Python
> (ActiveState Python 2.4) puts the 'library' part in Lib\site-packages
> and the scripts in Scripts (both under the Python install location),
> so a default installation will still *not* find the installed
> mercurial before the repository one. Andrew's installation works
> because he problably installed everything in one place.
>
> Andrew, do you remember which steps you followed to make & install
> Mercurial?
I just realized that pulling a clean repository doesn't reproduce the
problem correctly:
D:\rootpull>ls
CONTRIBUTORS PKG-INFO comparison.txt hg hgweb.cgi rewrite-log
tests
COPYING README contrib hgeditor mercurial setup.py
MANIFEST.in TODO doc
D:\rootpull>copy "c:\Program Files\Mercurial\hg.cmd" .
1 file(s) copied.
D:\rootpull>ls
CONTRIBUTORS README doc hgmerge rewrite-log
COPYING TODO hg hgweb.cgi setup.py
MANIFEST.in comparison.txt hg.cmd mercurial templates
PKG-INFO contrib hgeditor notes.txt tests
D:\rootpull>hg
Traceback (most recent call last):
File "D:\rootpull\hg.cmd", line 12, in ?
from mercurial import commands
File "D:\rootpull\mercurial\commands.py", line 9, in ?
import fancyopts, ui, hg, util
File "D:\rootpull\mercurial\hg.py", line 10, in ?
from revlog import *
File "D:\rootpull\mercurial\revlog.py", line 12, in ?
from mercurial import mdiff
File "D:\rootpull\mercurial\mdiff.py", line 8, in ?
import difflib, struct, bdiff
ImportError: No module named bdiff
D:\rootpull>
I wasn't paying enough attention to exactly where the failure was. The
hg file in the root of a mercurial repository isn't picked up by Windows
as an executable file. When I copy in my hg.cmd(slightly tweaked hg
script), I get the same error.
I guess I'll look at the patch and see how that works...
--
Andrew Thompson
http://aktzero.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: andrewkt.vcf
Type: text/x-vcard
Size: 129 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20050704/a4d44cf1/attachment-0001.vcf>
More information about the Mercurial
mailing list