diff 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
line wrap: on
line diff
--- a/mercurial/fileset.py	Wed May 06 10:17:41 2015 +0900
+++ b/mercurial/fileset.py	Sun Apr 26 22:26:44 2015 +0900
@@ -517,5 +517,8 @@
 
     return getset(matchctx(ctx, subset, status), tree)
 
+def prettyformat(tree):
+    return parser.prettyformat(tree, ('string', 'symbol'))
+
 # tell hggettext to extract docstrings from these functions:
 i18nfunctions = symbols.values()