equal
deleted
inserted
replaced
145 seen, l = set(), [] |
145 seen, l = set(), [] |
146 for spec in revs: |
146 for spec in revs: |
147 # attempt to parse old-style ranges first to deal with |
147 # attempt to parse old-style ranges first to deal with |
148 # things like old-tag which contain query metacharacters |
148 # things like old-tag which contain query metacharacters |
149 try: |
149 try: |
|
150 if isinstance(spec, int): |
|
151 seen.add(spec) |
|
152 l.append(spec) |
|
153 continue |
|
154 |
150 if revrangesep in spec: |
155 if revrangesep in spec: |
151 start, end = spec.split(revrangesep, 1) |
156 start, end = spec.split(revrangesep, 1) |
152 start = revfix(repo, start, 0) |
157 start = revfix(repo, start, 0) |
153 end = revfix(repo, end, len(repo) - 1) |
158 end = revfix(repo, end, len(repo) - 1) |
154 step = start > end and -1 or 1 |
159 step = start > end and -1 or 1 |