[issue2658] hg.cmd in C:\PF\Mercurial\bin\ is wrong
Will West
bugs at mercurial.selenic.com
Thu Feb 24 19:45:55 UTC 2011
New submission from Will West <will.o.west at gmail.com>:
in C:\PF\Mercurial\bin\hg.cmd:
"""
@echo off
rem launch hg.exe from parent folder
"%~dp0\..\hg.exe" %*
"""
"%~dp0" means current working directory, not the directory containing the
currently executing command. Thus hg.cmd is a pretty lousy thing to have on
your PATH, and C:\PF\Mercurial\bin\ is added, not C:\PF\Mercurial\
If you run this:
cd path/to/code
cmd /c "hg status"
You get an error about how path/to/code/../hg.exe does not exist.
----------
messages: 15386
nosy: wowest
priority: bug
status: unread
title: hg.cmd in C:\PF\Mercurial\bin\ is wrong
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2658>
____________________________________________________
More information about the Mercurial-devel
mailing list