~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-06-16 16:39:09 UTC
  • mfrom: (3495.1.2 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080616163909-4c3sncedblcbfp2p
(jam) Bug #239933 use the rigth exception for -c0

Show diffs side-by-side

added added

removed removed

Lines of Context:
522
522
        base_revspec = RevisionSpec.from_string(self.spec)
523
523
        base_revision_id = base_revspec.as_revision_id(context_branch)
524
524
        if base_revision_id == revision.NULL_REVISION:
525
 
            raise errors.InvalidRevisionSpec(self.user_spec, branch,
 
525
            raise errors.InvalidRevisionSpec(self.user_spec, context_branch,
526
526
                                         'cannot go before the null: revision')
527
527
        context_repo = context_branch.repository
528
528
        context_repo.lock_read()