Mercurial > hg
comparison tests/test-clone.t @ 30041:1779dde4c9ef
hg: set default path correctly when doing a clone+share (issue5378)
Before, if performing a clone+share from a repo that was itself
using shared storage, the share code would copy paths.default from
the underlying repo being shared, not from the source given by
the user.
This patch teaches hg.clonewithshare to resolve paths.default
and pass it to share so it can be written to the hgrc accordingly.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 02 Oct 2016 22:34:40 -0700 |
parents | 0e330d7d9f53 |
children | 932faa29b4c1 |
comparison
equal
deleted
inserted
replaced
30040:3e3f2201bbdf | 30041:1779dde4c9ef |
---|---|
827 head2 4:99f71071f117 | 827 head2 4:99f71071f117 |
828 | 828 |
829 Default path should be source, not share. | 829 Default path should be source, not share. |
830 | 830 |
831 $ hg -R share-dest1b config paths.default | 831 $ hg -R share-dest1b config paths.default |
832 $TESTTMP/source1a (glob) | 832 $TESTTMP/source1b (glob) |
833 | 833 |
834 Checked out revision should be head of default branch | 834 Checked out revision should be head of default branch |
835 | 835 |
836 $ hg -R share-dest1b log -r . | 836 $ hg -R share-dest1b log -r . |
837 changeset: 4:99f71071f117 | 837 changeset: 4:99f71071f117 |