[PATCH] Fix the path problem on Windows that prevents to run
hg from its own repository
Giuseppe Bilotta
bilotta78 at hotpop.com
Mon Jul 4 04:36:10 CDT 2005
On Sun, 03 Jul 2005 15:04:50 -0400, Andrew Thompson wrote:
> Giuseppe Bilotta wrote:
>> On Sun, 03 Jul 2005 03:02:16 -0400, Andrew Thompson wrote:
>>>NOTE: I don't have a 100% clean machine to test on right now.
>>>
>>>Mercurial is currently able to run properly even when looking at a
>>>repository of Mercurial on my Windows box
>>>
>>>D:\rootpull>hg version
>>>Mercurial version 38d106db75bc
>>
>> The question is: is rootpull a *clean* copy of the hg repository,
>> without compiled stuff in it?
>
> Yes, it was...
>
> Microsoft Windows 2000 [Version 5.00.2195]
> (C) Copyright 1985-2000 Microsoft Corp.
>
> C:\>d:
>
> D:\>hg clone http://selenic.com/hg newpull
> 'hg' is not recognized as an internal or external command,
> operable program or batch file.
>
> D:\>set PATH=%PATH%;"C:\Program Files\Mercurial"
>
> D:\>hg clone http://selenic.com/hg newpull
> requesting all changes
> adding changesets
> adding manifests
> adding file revisions
> modified 139 files, added 594 changesets and 1215 new revisions
>
> D:\>cd newpull
>
> D:\newpull>hg status
>
> D:\newpull>hg verify
> checking changesets
> checking manifests
> crosschecking files in changesets and manifests
> checking files
> 139 files, 594 changesets, 1215 total revisions
>
> D:\newpull>touch asdf
>
> D:\newpull>echo #blah >> hg
>
> D:\newpull>hg diff
> diff -r ca3c499e94c6 hg
> --- a/hg Sun Jul 03 11:58:05 2005
> +++ b/hg Sun Jul 03 15:00:39 2005
> @@ -11,3 +11,4 @@
> from mercurial import commands
>
> commands.run()
> +#blah
>
> D:\newpull>hg status
> C hg
> ? asdf
This is absolutely not what I get, see my other reply. Which version
of Python do you have? Where is mercurial installed? Do you have
special environment variables?
Oh wait. I think I know what the problem is: my mercurial is installed
in the default location (site-lib), but the scripts are not ... I
guess that you installed all of mercurial in its own folder, outside
of the Python tree and all in one place, so the mercurial directory
under the script path is found first.
--
Giuseppe "Oblomov" Bilotta
Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS
More information about the Mercurial
mailing list