~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-12-18 20:16:13 UTC
  • mfrom: (3123.3.1 Aaron's integration)
  • Revision ID: pqm@pqm.ubuntu.com-20071218201613-83d41agovrry31lv
Use self.outf in cmd_ignored (Lalinsky)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2000
2000
    """List ignored files and the patterns that matched them.
2001
2001
    """
2002
2002
 
 
2003
    encoding_type = 'replace'
2003
2004
    _see_also = ['ignore']
 
2005
 
2004
2006
    @display_command
2005
2007
    def run(self):
2006
2008
        tree = WorkingTree.open_containing(u'.')[0]
2011
2013
                    continue
2012
2014
                ## XXX: Slightly inefficient since this was already calculated
2013
2015
                pat = tree.is_ignored(path)
2014
 
                print '%-50s %s' % (path, pat)
 
2016
                self.outf.write('%-50s %s\n' % (path, pat))
2015
2017
        finally:
2016
2018
            tree.unlock()
2017
2019