mercurial/hg.py
changeset 34815 68e0bcb90357
parent 34805 c4a0480d1951
child 34878 9f7ecc5bbc28
--- a/mercurial/hg.py	Sun Oct 15 16:57:34 2017 -0400
+++ b/mercurial/hg.py	Sun Oct 15 22:48:02 2017 -0400
@@ -255,6 +255,7 @@
     r = repository(ui, destwvfs.base)
     postshare(srcrepo, r, bookmarks=bookmarks, defaultpath=defaultpath)
     _postshareupdate(r, update, checkout=checkout)
+    return r
 
 def postshare(sourcerepo, destrepo, bookmarks=True, defaultpath=None):
     """Called after a new shared repo is created.