equal
deleted
inserted
replaced
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)) |