##// END OF EJS Templates
clone: don't fail with --update for non-local clones (issue3578)...
Augie Fackler -
r17342:471f30d3 stable
parent child Browse files
Show More
@@ -398,7 +398,7 b' def clone(ui, peeropts, source, dest=Non'
398 398
399 399 if update:
400 400 if update is not True:
401 checkout = srcrepo.lookup(update)
401 checkout = srcpeer.lookup(update)
402 402 for test in (checkout, 'default', 'tip'):
403 403 if test is None:
404 404 continue
@@ -77,6 +77,24 b' clone via pull'
77 77 adding bar
78 78 $ cd ..
79 79
80 clone over http with --update
81
82 $ hg clone http://localhost:$HGPORT1/ updated --update 0
83 requesting all changes
84 adding changesets
85 adding manifests
86 adding file changes
87 added 2 changesets with 5 changes to 5 files
88 updating to branch default
89 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
90 $ hg log -r . -R updated
91 changeset: 0:8b6053c928fe
92 user: test
93 date: Thu Jan 01 00:00:00 1970 +0000
94 summary: 1
95
96 $ rm -rf updated
97
80 98 incoming via HTTP
81 99
82 100 $ hg clone http://localhost:$HGPORT1/ --rev 0 partial
General Comments 0
You need to be logged in to leave comments. Login now