~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Aaron Bentley
  • Date: 2005-10-04 04:32:32 UTC
  • mfrom: (1185.12.6)
  • mto: (1185.12.13)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: aaron.bentley@utoronto.ca-20051004043231-40302a149769263b
merged my own changes

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