Show More
@@ -62,7 +62,10 b' class match(object):' | |||
|
62 | 62 | pats = _normalize(exclude, 'glob', root, cwd, auditor) |
|
63 | 63 | self.excludepat, em = _buildmatch(ctx, pats, '(?:/|$)') |
|
64 | 64 | if exact: |
|
65 | if isinstance(patterns, list): | |
|
65 | 66 | self._files = patterns |
|
67 | else: | |
|
68 | self._files = list(patterns) | |
|
66 | 69 | pm = self.exact |
|
67 | 70 | elif patterns: |
|
68 | 71 | pats = _normalize(patterns, default, root, cwd, auditor) |
@@ -525,9 +525,11 b' def revpair(repo, revs):' | |||
|
525 | 525 | l = revrange(repo, revs) |
|
526 | 526 | |
|
527 | 527 | if len(l) == 0: |
|
528 | if revs: | |
|
529 | raise util.Abort(_('empty revision range')) | |
|
528 | 530 | return repo.dirstate.p1(), None |
|
529 | 531 | |
|
530 | if len(l) == 1: | |
|
532 | if len(l) == 1 and len(revs) == 1 and _revrangesep not in revs[0]: | |
|
531 | 533 | return repo.lookup(l[0]), None |
|
532 | 534 | |
|
533 | 535 | return repo.lookup(l[0]), repo.lookup(l[-1]) |
General Comments 0
You need to be logged in to leave comments.
Login now