~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Robert Collins
  • Date: 2005-10-03 01:53:47 UTC
  • Revision ID: robertc@robertcollins.net-20051003015347-dbabc1b75766f1c5
Patch from Heikki Paajanen testing status on specific files

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        If two revisions show status between first and second.
46
46
    """
47
47
    import sys
 
48
    from bzrlib.osutils import is_inside_any
48
49
    from bzrlib.delta import compare_trees
49
50
 
50
51
    if to_file == None:
84
85
            unknowns = new.unknowns()
85
86
            done_header = False
86
87
            for path in unknowns:
87
 
                # FIXME: Should also match if the unknown file is within a
88
 
                # specified directory.
89
 
                if specific_files:
90
 
                    if path not in specific_files:
91
 
                        continue
 
88
                if specific_files and not is_inside_any(specific_files, path):
 
89
                    continue
92
90
                if not done_header:
93
91
                    print >>to_file, 'unknown:'
94
92
                    done_header = True