mercurial/commands.py
changeset 13396 3e66eec9a814
parent 13388 a184dbd9b2c5
child 13400 14f3795a5ed7
--- 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')),