~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-10-16 10:03:21 UTC
  • mfrom: (1988.4.6 dotted-revno-input.)
  • Revision ID: pqm@pqm.ubuntu.com-20061016100321-c4951c9fc020dbd0
(Robert Collins) Output dotted decimal revision numbers during log, and accept them as revision specifiers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    """
87
87
    # TODO: Maybe move this into revisionspec.py
88
88
    revs = []
 
89
    # split on the first .. that is not followed by a / ?
89
90
    sep = re.compile("\\.\\.(?!/)")
90
91
    for x in sep.split(revstr):
91
92
        revs.append(revisionspec.RevisionSpec.from_string(x or None))