[Bug 5378] New: hgrc points to the wrong place when using pooled clones

bugzilla at mercurial-scm.org bugzilla at mercurial-scm.org
Thu Sep 22 19:58:53 UTC 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5378

            Bug ID: 5378
           Summary: hgrc points to the wrong place when using pooled
                    clones
           Product: Mercurial
           Version: 3.8.2
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: share
          Assignee: bugzilla at selenic.com
          Reporter: vgatien-baron at janestreet.com
                CC: mercurial-devel at selenic.com

I expect that when calling 'hg clone abc', the default path of the resulting
clone is abc. Pooled clones break this expectation, because the hgrc points to
the path of the initial clone.

Demonstration:
#!/bin/bash
cd /tmp/
rm -rf a a-share b b-share b-clone pool
hg init a; (cd a; echo a > a; hg add -q a; hg commit -q -m a)
hg clone -q a b -U
hg --config share.pool=/tmp/pool clone a a-share -U -q

# now we have two clones a and b with same rev 0,
# and one clone in the pool points to a, here is the bug
hg --config share.pool=/tmp/pool clone b b-share -U -q
head -n 2 b-share/.hg/hgrc
# prints
# [paths]
# default = /tmp/a
hg clone b b-clone -U -q
head -n 3 b-clone/.hg/hgrc
# prints
# # example repository config (see "hg help config" for more info)
# [paths]
# default = /tmp/b

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list