~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Martin Pool
  • Date: 2005-07-04 07:41:50 UTC
  • Revision ID: mbp@sourcefrog.net-20050704074150-a3d20d3f390598c5
- allow doubled-dashes in revision ids

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
    global REVISION_ID_RE
197
197
    if not REVISION_ID_RE:
198
198
        import re
199
 
        REVISION_ID_RE = re.compile('[\w.-]+@[\w.-]+-+\d+-[0-9a-f]+\Z')
 
199
        REVISION_ID_RE = re.compile('[\w.-]+@[\w.-]+--?\d+--?[0-9a-f]+\Z')
200
200
 
201
201
    if not REVISION_ID_RE.match(rid):
202
202
        raise ValueError("malformed revision-id %r" % rid)