~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/foreign.py

  • Committer: Jelmer Vernooij
  • Date: 2009-06-01 02:26:56 UTC
  • mto: This revision was merged to the branch mainline in revision 4394.
  • Revision ID: jelmer@samba.org-20090601022656-a4a6dvgs7j4lvgu7
Check for : in foreign revids early.

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
        :param revid: The bzr revision id
180
180
        :return: tuple with foreign revid and vcs mapping
181
181
        """
182
 
        if not "-" in revid:
 
182
        if not ":" in revid or not "-" in revid:
183
183
            raise errors.InvalidRevisionId(revid, None)
184
184
        try:
185
185
            foreign_vcs = self.get(revid.split("-")[0])