diff -r 17f21047a232 -r fb490d798be0 mercurial/hg.py --- a/mercurial/hg.py Fri Nov 09 09:36:16 2018 -0800 +++ b/mercurial/hg.py Fri Nov 09 10:46:02 2018 -0800 @@ -270,6 +270,7 @@ }) postshare(srcrepo, r, defaultpath=defaultpath) + r = repository(ui, dest) _postshareupdate(r, update, checkout=checkout) return r