/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-28 16:19:47 UTC
  • mto: This revision was merged to the branch mainline in revision 1979.
  • Revision ID: john@arbash-meinel.com-20060828161947-5986ffb6cf082f59
Switch from get_revision_spec() to RevisionSpec.from_string() (as advised by Martin)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import re
22
22
 
23
23
from bzrlib.trace import warning
24
 
from bzrlib.revisionspec import get_revision_spec
 
24
from bzrlib.revisionspec import RevisionSpec
25
25
from bzrlib.errors import BzrCommandError
26
26
 
27
27
 
82
82
    revs = []
83
83
    sep = re.compile("\\.\\.(?!/)")
84
84
    for x in sep.split(revstr):
85
 
        revs.append(get_revision_spec(x or None))
 
85
        revs.append(RevisionSpec.from_string(x or None))
86
86
    return revs
87
87
 
88
88