/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Martin Albisetti
  • Date: 2008-04-04 01:06:44 UTC
  • mfrom: (3331 +trunk)
  • mto: (3350.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 3351.
  • Revision ID: argentina@gmail.com-20080404010644-3vurp3zln4uzu9nv
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
            old = new.basis_tree()
85
85
        elif len(revision) > 0:
86
86
            try:
87
 
                rev_id = revision[0].in_history(wt.branch).rev_id
 
87
                rev_id = revision[0].as_revision_id(wt.branch)
88
88
                old = wt.branch.repository.revision_tree(rev_id)
89
89
            except errors.NoSuchRevision, e:
90
90
                raise errors.BzrCommandError(str(e))
91
91
            if (len(revision) > 1) and (revision[1].spec is not None):
92
92
                try:
93
 
                    rev_id = revision[1].in_history(wt.branch).rev_id
 
93
                    rev_id = revision[1].as_revision_id(wt.branch)
94
94
                    new = wt.branch.repository.revision_tree(rev_id)
95
95
                    new_is_working_tree = False
96
96
                except errors.NoSuchRevision, e:
103
103
            _raise_if_nonexistent(specific_files, old, new)
104
104
            want_unversioned = not versioned
105
105
            if short:
106
 
                changes = new._iter_changes(old, show_unchanged, specific_files,
 
106
                changes = new.iter_changes(old, show_unchanged, specific_files,
107
107
                    require_versioned=False, want_unversioned=want_unversioned)
108
108
                reporter = _mod_delta._ChangeReporter(output_file=to_file,
109
109
                    unversioned_filter=new.is_ignored)
134
134
                else:
135
135
                    prefix = ' '
136
136
                to_file.write("%s %s\n" % (prefix, conflict))
137
 
            if new_is_working_tree and show_pending:
 
137
            if (new_is_working_tree and show_pending
 
138
                and specific_files is None):
138
139
                show_pending_merges(new, to_file, short)
139
140
        finally:
140
141
            old.unlock()