~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-08 11:01:15 UTC
  • mfrom: (6123.1.16 gpg-typo)
  • Revision ID: pqm@cupuasso-20110908110115-gbb9benwkdksvzk5
(jelmer) Fix a typo (invalid format identifier) in an error message in
 bzrlib.gpg. (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
 
    try:
225
 
        branch_revno, branch_last_revision = branch.last_revision_info()
226
 
    except errors.UnsupportedOperation:
227
 
        return
 
224
    branch_revno, branch_last_revision = branch.last_revision_info()
228
225
    try:
229
226
        tree_last_id = working.get_parent_ids()[0]
230
227
    except IndexError:
271
268
 
272
269
def _show_branch_stats(branch, verbose, outfile):
273
270
    """Show statistics about a branch."""
274
 
    try:
275
 
        revno, head = branch.last_revision_info()
276
 
    except errors.UnsupportedOperation:
277
 
        return {}
 
271
    revno, head = branch.last_revision_info()
278
272
    outfile.write('\n')
279
273
    outfile.write('Branch history:\n')
280
274
    outfile.write('  %8d revision%s\n' % (revno, plural(revno)))