##// END OF EJS Templates
revset: pass repo when passing ui...
Gregory Szorc -
r33554:2943141f default
parent child Browse files
Show More
@@ -260,7 +260,7 b' def _search(web, req, tmpl):'
260 if not funcsused.issubset(revset.safesymbols):
260 if not funcsused.issubset(revset.safesymbols):
261 return MODE_KEYWORD, query
261 return MODE_KEYWORD, query
262
262
263 mfunc = revset.match(web.repo.ui, revdef)
263 mfunc = revset.match(web.repo.ui, revdef, repo=web.repo)
264 try:
264 try:
265 revs = mfunc(web.repo)
265 revs = mfunc(web.repo)
266 return MODE_REVSET, revs
266 return MODE_REVSET, revs
@@ -874,7 +874,7 b' def revset(context, mapping, args):'
874 repo = ctx.repo()
874 repo = ctx.repo()
875
875
876 def query(expr):
876 def query(expr):
877 m = revsetmod.match(repo.ui, expr)
877 m = revsetmod.match(repo.ui, expr, repo=repo)
878 return m(repo)
878 return m(repo)
879
879
880 if len(args) > 1:
880 if len(args) > 1:
General Comments 0
You need to be logged in to leave comments. Login now