mercurial/templater.py
changeset 33554 2943141f5e07
parent 33033 c31d45623304
child 34011 3d0f8918351b
equal deleted inserted replaced
33553:9c4e2aa0a239 33554:2943141f5e07
   872     raw = evalstring(context, mapping, args[0])
   872     raw = evalstring(context, mapping, args[0])
   873     ctx = mapping['ctx']
   873     ctx = mapping['ctx']
   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:
   881         formatargs = [evalfuncarg(context, mapping, a) for a in args[1:]]
   881         formatargs = [evalfuncarg(context, mapping, a) for a in args[1:]]
   882         revs = query(revsetlang.formatspec(raw, *formatargs))
   882         revs = query(revsetlang.formatspec(raw, *formatargs))