Mercurial > public > mercurial-scm > hg
diff hgext/remotenames.py @ 39746:25cc5616adc9
bookmarks: pass in formatter to printbookmarks() instead of opts (API)
This clarifies that user options have to be processed before calling
printbookmarks().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 15 Sep 2018 11:50:07 +0900 |
parents | b9e6b71dc272 |
children | fda1df3d4e06 |
line wrap: on
line diff
--- a/hgext/remotenames.py Wed Sep 19 17:09:01 2018 +0200 +++ b/hgext/remotenames.py Sat Sep 15 11:50:07 2018 +0900 @@ -230,7 +230,7 @@ self._nodetohoists.setdefault(node[0], []).append(name) return self._nodetohoists -def wrapprintbookmarks(orig, ui, repo, bmarks, **opts): +def wrapprintbookmarks(orig, ui, repo, fm, bmarks): if 'remotebookmarks' not in repo.names: return ns = repo.names['remotebookmarks'] @@ -243,7 +243,7 @@ bmarks[name] = (node, ' ', '') - return orig(ui, repo, bmarks, **opts) + return orig(ui, repo, fm, bmarks) def extsetup(ui): extensions.wrapfunction(bookmarks, '_printbookmarks', wrapprintbookmarks)