comparison states.py @ 14:f5e1055a3f68

reorder extsetup
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 25 May 2011 02:14:36 +0200
parents e95e8cf7988f
children a38b3d0a1562
comparison
equal deleted inserted replaced
13:e95e8cf7988f 14:f5e1055a3f68
105 105
106 # New revset predicate 106 # New revset predicate
107 ############################# 107 #############################
108 108
109 109
110 def extsetup(ui):
111 for state in STATES:
112 if state.trackheads:
113 revset.symbols[state.headssymbol] = state._revsetheads
114 110
115 # New commands 111 # New commands
116 ############################# 112 #############################
117 113
118 def cmdsetstate(ui, repo, statename, *changesets): 114 def cmdsetstate(ui, repo, statename, *changesets):
160 """heads filtering is done repo side""" 156 """heads filtering is done repo side"""
161 return heads 157 return heads
162 158
163 wireproto.wirerepository._reducehead = _reducehead 159 wireproto.wirerepository._reducehead = _reducehead
164 wireproto.commands['heads'] = (heads, '') 160 wireproto.commands['heads'] = (heads, '')
161
162 def extsetup(ui):
163 for state in STATES:
164 if state.trackheads:
165 revset.symbols[state.headssymbol] = state._revsetheads
165 166
166 def reposetup(ui, repo): 167 def reposetup(ui, repo):
167 168
168 if not repo.local(): 169 if not repo.local():
169 return 170 return