~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Robert Collins
  • Date: 2006-09-28 06:29:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2084.
  • Revision ID: robertc@robertcollins.net-20060928062930-02ab4dbb103cf477
revisions can now be specified using dotted-decimal revision numbers.
For instance, ``bzr diff -r 1.2.1..1.2.3. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
    """
81
81
    # TODO: Maybe move this into revisionspec.py
82
82
    revs = []
 
83
    # split on the first .. that is not followed by a / ?
83
84
    sep = re.compile("\\.\\.(?!/)")
84
85
    for x in sep.split(revstr):
85
86
        revs.append(RevisionSpec.from_string(x or None))