##// END OF EJS Templates
revset: make follow() reject more than one start revisions...
Yuya Nishihara -
r30178:d61c42c1 default
parent child Browse files
Show More
@@ -1027,10 +1027,11 b' def _follow(repo, subset, x, name, follo'
1027 x = getstring(l[0], _("%s expected a pattern") % name)
1027 x = getstring(l[0], _("%s expected a pattern") % name)
1028 rev = None
1028 rev = None
1029 if len(l) >= 2:
1029 if len(l) >= 2:
1030 rev = getset(repo, fullreposet(repo), l[1]).last()
1030 revs = getset(repo, fullreposet(repo), l[1])
1031 if rev is None:
1031 if len(revs) != 1:
1032 raise error.RepoLookupError(
1032 raise error.RepoLookupError(
1033 _("%s: starting revision set cannot be empty") % name)
1033 _("%s expected one starting revision") % name)
1034 rev = revs.last()
1034 c = repo[rev]
1035 c = repo[rev]
1035 matcher = matchmod.match(repo.root, repo.getcwd(), [x],
1036 matcher = matchmod.match(repo.root, repo.getcwd(), [x],
1036 ctx=repo[rev], default='path')
1037 ctx=repo[rev], default='path')
General Comments 0
You need to be logged in to leave comments. Login now