Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/fileset.py @ 25255:ad1d2c952889
fileset: pretty print syntax tree in debug output
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 26 Apr 2015 22:26:44 +0900 |
parents | ac381dd7a21f |
children | 0f44d35731d6 |
comparison
equal
deleted
inserted
replaced
25254:060bdfef2517 | 25255:ad1d2c952889 |
---|---|
515 status = None | 515 status = None |
516 subset = list(ctx.walk(ctx.match([]))) | 516 subset = list(ctx.walk(ctx.match([]))) |
517 | 517 |
518 return getset(matchctx(ctx, subset, status), tree) | 518 return getset(matchctx(ctx, subset, status), tree) |
519 | 519 |
520 def prettyformat(tree): | |
521 return parser.prettyformat(tree, ('string', 'symbol')) | |
522 | |
520 # tell hggettext to extract docstrings from these functions: | 523 # tell hggettext to extract docstrings from these functions: |
521 i18nfunctions = symbols.values() | 524 i18nfunctions = symbols.values() |