mercurial/templater.py
changeset 24337 696ab1a24ae0
parent 24306 6ddc86eedc3b
child 24586 90e3f5d22dad
equal deleted inserted replaced
24336:c9f4ef967a1d 24337:696ab1a24ae0
   389         # i18n: "revset" is a keyword
   389         # i18n: "revset" is a keyword
   390         raise error.ParseError(_("revset expects one or more arguments"))
   390         raise error.ParseError(_("revset expects one or more arguments"))
   391 
   391 
   392     raw = args[0][1]
   392     raw = args[0][1]
   393     ctx = mapping['ctx']
   393     ctx = mapping['ctx']
   394     repo = ctx._repo
   394     repo = ctx.repo()
   395 
   395 
   396     def query(expr):
   396     def query(expr):
   397         m = revsetmod.match(repo.ui, expr)
   397         m = revsetmod.match(repo.ui, expr)
   398         return m(repo)
   398         return m(repo)
   399 
   399