--- a/mercurial/commands.py Fri Feb 04 16:32:14 2011 -0300
+++ b/mercurial/commands.py Sat Jan 15 16:02:03 2011 +0100
@@ -1351,6 +1351,11 @@
m = util.matchdate(range)
ui.write("match: %s\n" % m(d[0]))
+def debugignore(ui, repo, *values, **opts):
+ """display the combined ignore pattern"""
+ ignore = repo.dirstate._ignore
+ ui.write("%s\n" % ignore.includepat)
+
def debugindex(ui, repo, file_, **opts):
"""dump the contents of an index file"""
r = None
@@ -4347,6 +4352,7 @@
_('[-e] DATE [RANGE]')),
"debugdata": (debugdata, [], _('FILE REV')),
"debugfsinfo": (debugfsinfo, [], _('[PATH]')),
+ "debugignore": (debugignore, [], ''),
"debugindex": (debugindex,
[('f', 'format', 0, _('revlog format'), _('FORMAT'))],
_('FILE')),