1792
1793
if not name_pattern_list:
1793
1794
raise errors.BzrCommandError("ignore requires at least one "
1794
1795
"NAME_PATTERN or --old-default-rules")
1795
1798
for name_pattern in name_pattern_list:
1797
1801
raise errors.BzrCommandError(
1798
1802
"NAME_PATTERN should not be an absolute path")
1799
1803
tree, relpath = WorkingTree.open_containing(u'.')