mercurial/hg.py
changeset 22646 d6ecdb8bfa16
parent 22618 ce95c15f680b
child 22647 5b6cd8526d56
--- a/mercurial/hg.py	Fri Sep 26 17:44:00 2014 -0700
+++ b/mercurial/hg.py	Fri Sep 26 13:55:53 2014 -0700
@@ -363,6 +363,11 @@
                 raise
 
             destlock = copystore(ui, srcrepo, destpath)
+            # copy bookmarks over
+            srcbookmarks = srcrepo.join('bookmarks')
+            dstbookmarks = os.path.join(destpath, 'bookmarks')
+            if os.path.exists(srcbookmarks):
+                util.copyfile(srcbookmarks, dstbookmarks)
 
             # Recomputing branch cache might be slow on big repos,
             # so just copy it