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