Show More
@@ -410,6 +410,8 b' def clone(ui, peeropts, source, dest=Non' | |||
|
410 | 410 | bn = destrepo[uprev].branch() |
|
411 | 411 | destrepo.ui.status(_("updating to branch %s\n") % bn) |
|
412 | 412 | _update(destrepo, uprev) |
|
413 | if update in destrepo._bookmarks: | |
|
414 | bookmarks.setcurrent(destrepo, update) | |
|
413 | 415 | |
|
414 | 416 | return srcpeer, destpeer |
|
415 | 417 | finally: |
@@ -349,6 +349,17 b' test clone with a specific revision' | |||
|
349 | 349 | $ hg -R cloned-bookmarks-rev bookmarks |
|
350 | 350 | X2 1:925d80f479bb |
|
351 | 351 | |
|
352 | test clone with update to a bookmark | |
|
353 | ||
|
354 | $ hg clone -u Z . cloned-bookmarks-update | |
|
355 | updating to branch default | |
|
356 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
357 | $ hg -R cloned-bookmarks-update bookmarks | |
|
358 | X2 1:925d80f479bb | |
|
359 | Y 2:db815d6d32e6 | |
|
360 | * Z 2:db815d6d32e6 | |
|
361 | x y 2:db815d6d32e6 | |
|
362 | ||
|
352 | 363 | create bundle with two heads |
|
353 | 364 | |
|
354 | 365 | $ hg clone . tobundle |
General Comments 0
You need to be logged in to leave comments.
Login now