~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

Merge in format-5 work - release bzr 0.1rc1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
    show_pending
40
40
        If set, write pending merges.
 
41
 
41
42
    revision
42
43
        If None the compare latest revision with working tree
43
44
        If one revision show compared it with working tree.
44
45
        If two revisions show status between first and second.
45
46
    """
46
47
    import sys
 
48
    from bzrlib.osutils import is_inside_any
47
49
    from bzrlib.delta import compare_trees
48
50
 
49
51
    if to_file == None:
83
85
            unknowns = new.unknowns()
84
86
            done_header = False
85
87
            for path in unknowns:
86
 
                # FIXME: Should also match if the unknown file is within a
87
 
                # specified directory.
88
 
                if specific_files:
89
 
                    if path not in specific_files:
90
 
                        continue
 
88
                if specific_files and not is_inside_any(specific_files, path):
 
89
                    continue
91
90
                if not done_header:
92
91
                    print >>to_file, 'unknown:'
93
92
                    done_header = True