mercurial/commands.py
changeset 13406 5e57c199848d
parent 13400 14f3795a5ed7
child 13407 354f304152ad
equal deleted inserted replaced
13405:682edefe7dbb 13406:5e57c199848d
  1353         ui.write("match: %s\n" % m(d[0]))
  1353         ui.write("match: %s\n" % m(d[0]))
  1354 
  1354 
  1355 def debugignore(ui, repo, *values, **opts):
  1355 def debugignore(ui, repo, *values, **opts):
  1356     """display the combined ignore pattern"""
  1356     """display the combined ignore pattern"""
  1357     ignore = repo.dirstate._ignore
  1357     ignore = repo.dirstate._ignore
  1358     ui.write("%s\n" % ignore.includepat)
  1358     if hasattr(ignore, 'includepat'):
       
  1359         ui.write("%s\n" % ignore.includepat)
       
  1360     else:
       
  1361         raise util.Abort(_("no ignore patterns found"))
  1359 
  1362 
  1360 def debugindex(ui, repo, file_, **opts):
  1363 def debugindex(ui, repo, file_, **opts):
  1361     """dump the contents of an index file"""
  1364     """dump the contents of an index file"""
  1362     r = None
  1365     r = None
  1363     if repo:
  1366     if repo: