/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/diff.py

Merge with make-it-work

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import time
29
29
 
30
30
from bzrlib import (
 
31
    branch as _mod_branch,
31
32
    bzrdir,
32
33
    commands,
33
34
    errors,
447
448
                return branch.basis_tree()
448
449
        else:
449
450
            return tree
450
 
    revision = spec.in_store(branch)
451
 
    revision_id = revision.rev_id
452
 
    rev_branch = revision.branch
453
 
    return rev_branch.repository.revision_tree(revision_id)
 
451
    if not spec.needs_branch():
 
452
        branch = _mod_branch.Branch.open(spec.get_branch())
 
453
    revision_id = spec.as_revision_id(branch)
 
454
    return branch.repository.revision_tree(revision_id)
454
455
 
455
456
 
456
457
def _relative_paths_in_tree(tree, paths):