[PATCH STABLE] subrepo: handle 'C:' style paths on the command line (issue5770)

Yuya Nishihara yuya at tcha.org
Tue Jan 23 07:29:06 EST 2018


On Tue, 23 Jan 2018 20:57:54 +0900, Yuya Nishihara wrote:
> > >   $ mkdir '$foo'
> > >   $ cd '$foo'
> > >   $ hg init
> > >   $ foo=bar hg root
> > >   abort: repository $TESTTMP/$foo not found!
> > 
> > Yikes.  I'm assuming the expandpath() is in there to handle `hg init  
> > ~\myrepo` on Windows.  Moving it out would avoid breaking existing repos,  
> > but how do we avoid the BC when given on the command line?
> 
> Here we basically do expandpath(getcwd()). That's the problem. Perhaps we
> should instead apply expandpath() only to command arguments.

More precisely, command arguments (maybe only on Windows?) and paths read
from hgrc.


More information about the Mercurial-devel mailing list