Mercurial > hg
comparison mercurial/templater.py @ 24337:696ab1a24ae0
templater: replace 'ctx._repo' with 'ctx.repo()'
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 12 Mar 2015 23:11:15 -0400 |
parents | 6ddc86eedc3b |
children | 90e3f5d22dad |
comparison
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 |