Mercurial > public > mercurial-scm > hg
comparison mercurial/pushkey.py @ 17298:59c14bf5a48c stable
pushkey: do not exchange obsole markers if feature is disabled
This apply to both push and pull both when client or server.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Sat, 28 Jul 2012 13:33:06 +0200 |
parents | 28ed1c4511ce |
children | a2c7ae21e8f4 |
comparison
equal
deleted
inserted
replaced
17297:6955d69a52a4 | 17298:59c14bf5a48c |
---|---|
9 | 9 |
10 def _nslist(repo): | 10 def _nslist(repo): |
11 n = {} | 11 n = {} |
12 for k in _namespaces: | 12 for k in _namespaces: |
13 n[k] = "" | 13 n[k] = "" |
14 if not obsolete._enabled: | |
15 n.pop('obsolete') | |
14 return n | 16 return n |
15 | 17 |
16 _namespaces = {"namespaces": (lambda *x: False, _nslist), | 18 _namespaces = {"namespaces": (lambda *x: False, _nslist), |
17 "bookmarks": (bookmarks.pushbookmark, bookmarks.listbookmarks), | 19 "bookmarks": (bookmarks.pushbookmark, bookmarks.listbookmarks), |
18 "phases": (phases.pushphase, phases.listphases), | 20 "phases": (phases.pushphase, phases.listphases), |