##// END OF EJS Templates
debugignore: use getattr instead of hasattr
Augie Fackler -
r14949:a4435770 default
parent child Browse files
Show More
@@ -1659,8 +1659,9 b' def debuggetbundle(ui, repopath, bundlep'
1659 1659 def debugignore(ui, repo, *values, **opts):
1660 1660 """display the combined ignore pattern"""
1661 1661 ignore = repo.dirstate._ignore
1662 if hasattr(ignore, 'includepat'):
1663 ui.write("%s\n" % ignore.includepat)
1662 includepat = getattr(ignore, 'includepat', None)
1663 if includepat is not None:
1664 ui.write("%s\n" % includepat)
1664 1665 else:
1665 1666 raise util.Abort(_("no ignore patterns found"))
1666 1667
General Comments 0
You need to be logged in to leave comments. Login now