--- a/hgext/share.py Wed Nov 11 20:43:25 2015 -0500
+++ b/hgext/share.py Wed Nov 11 20:45:38 2015 -0500
@@ -121,7 +121,7 @@
return orig(ui, source, *args, **opts)
def extsetup(ui):
- extensions.wrapfunction(bookmarks.bmstore, 'getbkfile', getbkfile)
+ extensions.wrapfunction(bookmarks, '_getbkfile', getbkfile)
extensions.wrapfunction(bookmarks.bmstore, 'recordchange', recordchange)
extensions.wrapfunction(bookmarks.bmstore, '_writerepo', writerepo)
extensions.wrapcommand(commands.table, 'clone', clone)
@@ -149,12 +149,12 @@
srcurl, branches = parseurl(source)
return repository(repo.ui, srcurl)
-def getbkfile(orig, self, repo):
+def getbkfile(orig, repo):
if _hassharedbookmarks(repo):
srcrepo = _getsrcrepo(repo)
if srcrepo is not None:
repo = srcrepo
- return orig(self, repo)
+ return orig(repo)
def recordchange(orig, self, tr):
# Continue with write to local bookmarks file as usual