~larstiq/bzr/bzr.lq

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Wouter van Heyst
  • Date: 2006-06-19 00:05:50 UTC
  • mfrom: (1769.2.22 +trunk)
  • Revision ID: larstiq@larstiq.dyndns.org-20060619000550-f65dc3f619342755
[merge] bzr.dev 1791

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
 
30
30
@deprecated_function(zero_eight)
31
 
def show_status(branch, show_unchanged=False,
 
31
def show_status(branch, show_unchanged=None,
32
32
                specific_files=None,
33
33
                show_ids=False,
34
34
                to_file=None,
69
69
                     specific_files, show_ids, to_file, show_pending, revision)
70
70
 
71
71
 
72
 
def show_tree_status(wt, show_unchanged=False,
 
72
def show_tree_status(wt, show_unchanged=None,
73
73
                     specific_files=None,
74
74
                     show_ids=False,
75
75
                     to_file=None,
87
87
    If showing the status of a working tree, extra information is included
88
88
    about unknown files, conflicts, and pending merges.
89
89
 
90
 
    show_unchanged
91
 
        If set, includes unchanged files.
92
 
 
93
 
    specific_files
94
 
        If set, a list of filenames whose status should be shown.
95
 
        It is an error to give a filename that is not in the working 
 
90
    :param show_unchanged: Deprecated parameter. If set, includes unchanged 
 
91
        files.
 
92
    :param specific_files: If set, a list of filenames whose status should be
 
93
        shown.  It is an error to give a filename that is not in the working 
96
94
        tree, or in the working inventory or in the basis inventory.
97
 
 
98
 
    show_ids
99
 
        If set, includes each file's id.
100
 
 
101
 
    to_file
102
 
        If set, write to this file (default stdout.)
103
 
 
104
 
    show_pending
105
 
        If set, write pending merges.
106
 
 
107
 
    revision
108
 
        If None the compare latest revision with working tree
 
95
    :param show_ids: If set, includes each file's id.
 
96
    :param to_file: If set, write to this file (default stdout.)
 
97
    :param show_pending: If set, write pending merges.
 
98
    :param revision: If None the compare latest revision with working tree
 
99
        If not None it must be a RevisionSpec list.
109
100
        If one revision show compared it with working tree.
110
101
        If two revisions show status between first and second.
111
102
    """
112
 
    if to_file == None:
 
103
    if show_unchanged is not None:
 
104
        warn("show_status_trees with show_unchanged has been deprecated "
 
105
             "since bzrlib 0.9", DeprecationWarning, stacklevel=2)
 
106
 
 
107
    if to_file is None:
113
108
        to_file = sys.stdout
114
109
    
115
110
    wt.lock_read()