[issue2086] Problem setting default path when cloning from local-file scheme
Glenn Hutchings
bugs at mercurial.selenic.com
Wed Mar 10 20:58:08 UTC 2010
New submission from Glenn Hutchings <zondo42 at googlemail.com>:
There's a problem when cloning from a repo specified using the 'schemes'
extension. If the scheme is a local file, the 'default' path in the clone's
.hg/hgrc is set incorrectly. For example, suppose this is the setup in your
hgrc:
[extensions]
schemes =
[schemes]
main = /path/to/repodirs
Running the command 'hg clone main://myrepo' from directory '/home/glenn'
(assuming myrepo exists in repodirs) results in a cloned repo with the
default path set to '/home/glenn:/myrepo' instead of 'main://myrepo' as
expected.
I've attached a patch which fixes this problem (but not entirely sure it
doesn't introduce others).
----------
files: file-scheme-bug.patch
messages: 12008
nosy: zondo
priority: bug
status: unread
title: Problem setting default path when cloning from local-file scheme
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2086>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-scheme-bug.patch
Type: text/x-diff
Size: 1054 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100310/5faa5ff9/attachment.patch>
More information about the Mercurial-devel
mailing list