~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: wang
  • Date: 2006-10-21 07:59:57 UTC
  • mto: (2098.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2099.
  • Revision ID: wang@ubuntu-20061021075957-f1fcec87b9f4275a
Pushing to a remote branch does not currently update the remote working
tree. After a remote push, ``bzr status`` and ``bzr diff`` on the remote
machine now show that the working tree is out of date.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from bzrlib.symbol_versioning import (deprecated_function,
24
24
        zero_eight,
25
25
        )
 
26
from bzrlib.trace import warning
26
27
 
27
28
# TODO: when showing single-line logs, truncate to the width of the terminal
28
29
# if known, but only if really going to the terminal (not into a file)
112
113
    try:
113
114
        new_is_working_tree = True
114
115
        if revision is None:
 
116
            if wt.last_revision() != wt.branch.last_revision():
 
117
                warning("working tree is out of date, run 'bzr update'")
115
118
            new = wt
116
119
            old = new.basis_tree()
117
120
        elif len(revision) > 0: