~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Matthieu Moy
  • Date: 2006-06-05 13:37:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1857.
  • Revision ID: Matthieu.Moy@imag.fr-20060605133754-1fc6081371fb3c11
Implementation of -r revno:N:/path/to/branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
    import sys
220
220
    output = sys.stdout
221
221
    def spec_tree(spec):
222
 
        revision_id = spec.in_store(tree.branch).rev_id
223
 
        return tree.branch.repository.revision_tree(revision_id)
 
222
        if tree:
 
223
            revision = spec.in_store(tree.branch)
 
224
        else:
 
225
            revision = spec.in_store(None)
 
226
        revision_id = revision.rev_id
 
227
        branch = revision.branch
 
228
        return branch.repository.revision_tree(revision_id)
224
229
    if old_revision_spec is None:
225
230
        old_tree = tree.basis_tree()
226
231
    else: