~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-09 13:52:06 UTC
  • mfrom: (6202.1.3 revno-revision)
  • Revision ID: pqm@pqm.ubuntu.com-20111009135206-t3utsln6mtzv9eut
(jelmer) Add a --revision argument to 'bzr revno'. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
    """Show missing revisions in working tree."""
222
222
    branch = working.branch
223
223
    basis = working.basis_tree()
224
 
    branch_revno, branch_last_revision = branch.last_revision_info()
 
224
    try:
 
225
        branch_revno, branch_last_revision = branch.last_revision_info()
 
226
    except errors.UnsupportedOperation:
 
227
        return
225
228
    try:
226
229
        tree_last_id = working.get_parent_ids()[0]
227
230
    except IndexError:
268
271
 
269
272
def _show_branch_stats(branch, verbose, outfile):
270
273
    """Show statistics about a branch."""
271
 
    revno, head = branch.last_revision_info()
 
274
    try:
 
275
        revno, head = branch.last_revision_info()
 
276
    except errors.UnsupportedOperation:
 
277
        return {}
272
278
    outfile.write('\n')
273
279
    outfile.write('Branch history:\n')
274
280
    outfile.write('  %8d revision%s\n' % (revno, plural(revno)))