[issue2373] ~ and $HOME in [paths] does not work as expected

Thomas Arendsen Hein bugs at mercurial.selenic.com
Mon Sep 13 13:53:28 UTC 2010


New submission from Thomas Arendsen Hein <thomas at intevation.de>:

Mercurial 1.6.3:
- Using ~ in [paths] is not expanded.
- Using $HOME in [paths] is expanded, but resulting paths are relative to
repository

hg at hg:~/pub/mirrors/bitbucket.org/mg/hg-i18n$ grep ^foo .hg/hgrc
foo1 = ~/pub/mercurial
foo2 = $HOME/pub/mercurial
hg at hg:~/pub/mirrors/bitbucket.org/mg/hg-i18n$ hg out foo1
abort: repository
/home/hg/pub/mirrors/bitbucket.org/mg/hg-i18n/~/pub/mercurial not found!
hg at hg:~/pub/mirrors/bitbucket.org/mg/hg-i18n$ hg out foo2
abort: repository
/home/hg/pub/mirrors/bitbucket.org/mg/hg-i18n//home/hg/pub/mercurial not found!

Workaround (besides using the full path):
foo3 = /$HOME/pub/mercurial

I guess that paths are used relative to the repository root when they don't
start with "/", but I did not look at the code yet.

I did not verify if this is a regression.

----------
messages: 13605
nosy: ThomasAH
priority: bug
status: unread
title: ~ and $HOME in [paths] does not work as expected

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2373>
____________________________________________________


More information about the Mercurial-devel mailing list