~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Jelmer Vernooij
  • Date: 2011-01-18 23:54:51 UTC
  • mto: This revision was merged to the branch mainline in revision 5621.
  • Revision ID: jelmer@samba.org-20110118235451-ak2heb58unsa5d68
'bzr cat-revision' no longer requires a working tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
328
328
        if revision_id is None and revision is None:
329
329
            raise errors.BzrCommandError('You must supply either'
330
330
                                         ' --revision or a revision_id')
331
 
        b = WorkingTree.open_containing(directory)[0].branch
 
331
 
 
332
        b = bzrdir.BzrDir.open_containing_tree_or_branch(directory)[1]
332
333
 
333
334
        revisions = b.repository.revisions
334
335
        if revisions is None: