~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2005-10-19 04:51:20 UTC
  • Revision ID: robertc@robertcollins.net-20051019045120-88cf0c30850cf736
revision may be None in cmd_branch, do not treat as an int.

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
                copy_branch(br_from, to_location, revision_id, basis_branch)
421
421
            except bzrlib.errors.NoSuchRevision:
422
422
                rmtree(to_location)
423
 
                msg = "The branch %s has no revision %d." % (from_location, revision[0])
 
423
                msg = "The branch %s has no revision %s." % (from_location, revision[0])
424
424
                raise BzrCommandError(msg)
425
425
            except bzrlib.errors.UnlistableBranch:
426
426
                msg = "The branch %s cannot be used as a --basis"