Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pushkey.py @ 13353:689bf32b3bbd
bookmarks: move pushkey functions into core
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 10 Feb 2011 13:46:27 -0600 |
parents | ca4fc993087c |
children | 79cc89de5be1 |
line wrap: on
line diff
--- a/mercurial/pushkey.py Thu Feb 10 13:46:27 2011 -0600 +++ b/mercurial/pushkey.py Thu Feb 10 13:46:27 2011 -0600 @@ -5,13 +5,16 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. +import bookmarks + def _nslist(repo): n = {} for k in _namespaces: n[k] = "" return n -_namespaces = {"namespaces": (lambda *x: False, _nslist)} +_namespaces = {"namespaces": (lambda *x: False, _nslist), + "bookmarks": (bookmarks.pushbookmark, bookmarks.listbookmarks)} def register(namespace, pushkey, listkeys): _namespaces[namespace] = (pushkey, listkeys)