##// END OF EJS Templates
clone: update to active bookmark, if set...
Dan Villiom Podlaski Christiansen -
r46814:72007a9a default
parent child Browse files
Show More
@@ -1013,15 +1013,19 b' def clone('
1013 1013 pass
1014 1014 if uprev is None:
1015 1015 try:
1016 uprev = destrepo._bookmarks[b'@']
1017 update = b'@'
1016 if destrepo._activebookmark:
1017 uprev = destrepo.lookup(destrepo._activebookmark)
1018 update = destrepo._activebookmark
1019 else:
1020 uprev = destrepo._bookmarks[b'@']
1021 update = b'@'
1018 1022 bn = destrepo[uprev].branch()
1019 1023 if bn == b'default':
1020 status = _(b"updating to bookmark @\n")
1024 status = _(b"updating to bookmark %s\n" % update)
1021 1025 else:
1022 1026 status = (
1023 _(b"updating to bookmark @ on branch %s\n") % bn
1024 )
1027 _(b"updating to bookmark %s on branch %s\n")
1028 ) % (update, bn)
1025 1029 except KeyError:
1026 1030 try:
1027 1031 uprev = destrepo.branchtip(b'default')
General Comments 0
You need to be logged in to leave comments. Login now