~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-19 13:56:32 UTC
  • mto: This revision was merged to the branch mainline in revision 5805.
  • Revision ID: jelmer@samba.org-20110419135632-7r3ag46vdsfw00td
RaiseĀ InvalidRevisionIdĀ onĀ Branch.set_last_revision_info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3003
3003
        # XXX: These should be returned by the set_last_revision_info verb
3004
3004
        old_revno, old_revid = self.last_revision_info()
3005
3005
        self._run_pre_change_branch_tip_hooks(revno, revision_id)
3006
 
        revision_id = _mod_revision.ensure_null(revision_id)
 
3006
        if not revision_id or not isinstance(revision_id, basestring):
 
3007
            raise errors.InvalidRevisionId(revision_id=revision_id, branch=self)
3007
3008
        try:
3008
3009
            response = self._call('Branch.set_last_revision_info',
3009
3010
                self._remote_path(), self._lock_token, self._repo_lock_token,