Show More
@@ -31,6 +31,7 b' from . import (' | |||||
31 | merge as mergemod, |
|
31 | merge as mergemod, | |
32 | node, |
|
32 | node, | |
33 | phases, |
|
33 | phases, | |
|
34 | remotenames, | |||
34 | repoview, |
|
35 | repoview, | |
35 | scmutil, |
|
36 | scmutil, | |
36 | sshpeer, |
|
37 | sshpeer, | |
@@ -689,6 +690,9 b' def clone(ui, peeropts, source, dest=Non' | |||||
689 |
|
690 | |||
690 | destrepo.ui.setconfig('paths', 'default', defaulturl, 'clone') |
|
691 | destrepo.ui.setconfig('paths', 'default', defaulturl, 'clone') | |
691 |
|
692 | |||
|
693 | if ui.configbool('experimental', 'remotenames'): | |||
|
694 | remotenames.pullremotenames(destrepo, srcpeer) | |||
|
695 | ||||
692 | if update: |
|
696 | if update: | |
693 | if update is not True: |
|
697 | if update is not True: | |
694 | checkout = srcpeer.lookup(update) |
|
698 | checkout = srcpeer.lookup(update) |
@@ -4,6 +4,8 b' Testing the functionality to pull remote' | |||||
4 | $ cat >> $HGRCPATH << EOF |
|
4 | $ cat >> $HGRCPATH << EOF | |
5 | > [alias] |
|
5 | > [alias] | |
6 | > glog = log -G -T '{rev}:{node|short} {desc}' |
|
6 | > glog = log -G -T '{rev}:{node|short} {desc}' | |
|
7 | > [experimental] | |||
|
8 | > remotenames = True | |||
7 | > EOF |
|
9 | > EOF | |
8 |
|
10 | |||
9 | Making a server repo |
|
11 | Making a server repo | |
@@ -46,25 +48,12 b' Making a client repo' | |||||
46 | -------------------- |
|
48 | -------------------- | |
47 |
|
49 | |||
48 | $ cd .. |
|
50 | $ cd .. | |
49 | $ hg init client |
|
|||
50 | $ cd client |
|
|||
51 | $ cat >> .hg/hgrc << EOF |
|
|||
52 | > [experimental] |
|
|||
53 | > remotenames = True |
|
|||
54 | > EOF |
|
|||
55 |
|
51 | |||
56 |
$ hg |
|
52 | $ hg clone server client | |
57 | pulling from ../server/ |
|
53 | updating to branch default | |
58 | requesting all changes |
|
54 | 8 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
59 | adding changesets |
|
|||
60 | adding manifests |
|
|||
61 | adding file changes |
|
|||
62 | added 9 changesets with 9 changes to 9 files (+1 heads) |
|
|||
63 | adding remote bookmark bar |
|
|||
64 | adding remote bookmark foo |
|
|||
65 | new changesets 18d04c59bb5d:3e1487808078 |
|
|||
66 | (run 'hg heads' to see heads) |
|
|||
67 |
|
55 | |||
|
56 | $ cd client | |||
68 |
|
|
57 | $ cat .hg/remotenames/bookmarks | |
69 | 0 |
|
58 | 0 | |
70 |
|
59 |
General Comments 0
You need to be logged in to leave comments.
Login now