##// END OF EJS Templates
clone: update to @ bookmark if it exists
Kevin Bullock -
r17756:92980a8d default
parent child Browse files
Show More
@@ -409,7 +409,7 b' def clone(ui, peeropts, source, dest=Non'
409 if update:
409 if update:
410 if update is not True:
410 if update is not True:
411 checkout = srcpeer.lookup(update)
411 checkout = srcpeer.lookup(update)
412 for test in (checkout, 'default', 'tip'):
412 for test in (checkout, '@', 'default', 'tip'):
413 if test is None:
413 if test is None:
414 continue
414 continue
415 try:
415 try:
@@ -468,6 +468,16 b' iterable in addbranchrevs()'
468 $ rm -r ua
468 $ rm -r ua
469
469
470
470
471 Test clone with special '@' bookmark:
472 $ cd a
473 $ hg bookmark -r a7949464abda @ # branch point of stable from default
474 $ hg clone . ../i
475 updating to branch default
476 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
477 $ hg id -i ../i
478 a7949464abda
479
480
471 Testing failures:
481 Testing failures:
472
482
473 $ mkdir fail
483 $ mkdir fail
General Comments 0
You need to be logged in to leave comments. Login now