--- a/mercurial/hg.py Wed Nov 30 16:53:44 2011 -0600
+++ b/mercurial/hg.py Fri Nov 04 10:18:40 2011 +0100
@@ -353,6 +353,21 @@
if dircleanup:
dircleanup.close()
+ # clone all bookmarks
+ if destrepo.local() and srcrepo.capable("pushkey"):
+ rb = srcrepo.listkeys('bookmarks')
+ for k, n in rb.iteritems():
+ try:
+ m = destrepo.lookup(n)
+ destrepo._bookmarks[k] = m
+ except error.RepoLookupError:
+ pass
+ if rb:
+ bookmarks.write(destrepo)
+ elif srcrepo.local() and destrepo.capable("pushkey"):
+ for k, n in srcrepo._bookmarks.iteritems():
+ destrepo.pushkey('bookmarks', k, '', hex(n))
+
if destrepo.local():
fp = destrepo.opener("hgrc", "w", text=True)
fp.write("[paths]\n")
@@ -381,21 +396,6 @@
destrepo.ui.status(_("updating to branch %s\n") % bn)
_update(destrepo, uprev)
- # clone all bookmarks
- if destrepo.local() and srcrepo.capable("pushkey"):
- rb = srcrepo.listkeys('bookmarks')
- for k, n in rb.iteritems():
- try:
- m = destrepo.lookup(n)
- destrepo._bookmarks[k] = m
- except error.RepoLookupError:
- pass
- if rb:
- bookmarks.write(destrepo)
- elif srcrepo.local() and destrepo.capable("pushkey"):
- for k, n in srcrepo._bookmarks.iteritems():
- destrepo.pushkey('bookmarks', k, '', hex(n))
-
return srcrepo, destrepo
finally:
release(srclock, destlock)
--- a/tests/test-https.t Wed Nov 30 16:53:44 2011 -0600
+++ b/tests/test-https.t Fri Nov 04 10:18:40 2011 +0100
@@ -118,9 +118,9 @@
adding manifests
adding file changes
added 1 changesets with 4 changes to 4 files
+ warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting)
updating to branch default
4 files updated, 0 files merged, 0 files removed, 0 files unresolved
- warning: localhost certificate with fingerprint 91:4f:1a:ff:87:24:9c:09:b6:85:9b:88:b1:90:6d:30:75:64:91:ca not verified (check hostfingerprints or web.cacerts config setting)
$ hg verify -R copy-pull
checking changesets
checking manifests