comparison hgsubversion/__init__.py @ 1334:9a78a6524f9d stable

native revs: Match changes in core to fix native revs Core changed the definition of stringset, it broke native revset. This patch fixes it.
author Laurent Charignon <lcharignon@fb.com>
date Tue, 12 May 2015 11:36:44 -0700
parents 43a365f5d13c
children 44895e2abff2
comparison
equal deleted inserted replaced
1333:7475c42671b1 1334:9a78a6524f9d
176 for tunnel in ui.configlist('hgsubversion', 'tunnels'): 176 for tunnel in ui.configlist('hgsubversion', 'tunnels'):
177 hg.schemes['svn+' + tunnel] = svnrepo 177 hg.schemes['svn+' + tunnel] = svnrepo
178 178
179 if ui.configbool('hgsubversion', 'nativerevs'): 179 if ui.configbool('hgsubversion', 'nativerevs'):
180 extensions.wrapfunction(revset, 'stringset', util.revset_stringset) 180 extensions.wrapfunction(revset, 'stringset', util.revset_stringset)
181 revset.symbols['stringset'] = revset.stringset
182 revset.methods['string'] = revset.stringset
183 revset.methods['symbol'] = revset.stringset
181 184
182 _old_local = hg.schemes['file'] 185 _old_local = hg.schemes['file']
183 def _lookup(url): 186 def _lookup(url):
184 if util.islocalrepo(url): 187 if util.islocalrepo(url):
185 return svnrepo 188 return svnrepo