Show More
@@ -10,7 +10,7 b' from i18n import _' | |||
|
10 | 10 | import os, sys, errno, re, glob, tempfile |
|
11 | 11 | import util, templater, patch, error, encoding, templatekw |
|
12 | 12 | import match as _match |
|
13 | import similar | |
|
13 | import similar, revset | |
|
14 | 14 | |
|
15 | 15 | revrangesep = ':' |
|
16 | 16 | |
@@ -149,7 +149,13 b' def revrange(repo, revs):' | |||
|
149 | 149 | |
|
150 | 150 | seen, l = set(), [] |
|
151 | 151 | for spec in revs: |
|
152 | if revrangesep in spec: | |
|
152 | if spec and not ( | |
|
153 | spec.startswith(revrangesep) or spec.endswith(revrangesep)): | |
|
154 | m = revset.match(spec) | |
|
155 | for r in m(repo, range(len(repo))): | |
|
156 | l.append(r) | |
|
157 | seen.update(l) | |
|
158 | elif revrangesep in spec: | |
|
153 | 159 | start, end = spec.split(revrangesep, 1) |
|
154 | 160 | start = revfix(repo, start, 0) |
|
155 | 161 | end = revfix(repo, end, len(repo) - 1) |
General Comments 0
You need to be logged in to leave comments.
Login now