diff mercurial/pushkey.py @ 15648:79cc89de5be1

phases: add basic pushkey support
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 15 Dec 2011 11:24:26 +0100
parents 689bf32b3bbd
children 28ed1c4511ce
line wrap: on
line diff
--- a/mercurial/pushkey.py	Wed Oct 26 14:30:43 2011 +0200
+++ b/mercurial/pushkey.py	Thu Dec 15 11:24:26 2011 +0100
@@ -5,7 +5,7 @@
 # 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
+import bookmarks, phases
 
 def _nslist(repo):
     n = {}
@@ -14,7 +14,9 @@
     return n
 
 _namespaces = {"namespaces": (lambda *x: False, _nslist),
-               "bookmarks": (bookmarks.pushbookmark, bookmarks.listbookmarks)}
+               "bookmarks": (bookmarks.pushbookmark, bookmarks.listbookmarks),
+               "phases": (phases.pushphase, phases.listphases),
+              }
 
 def register(namespace, pushkey, listkeys):
     _namespaces[namespace] = (pushkey, listkeys)