equal
deleted
inserted
replaced
1025 c = repo['.'] |
1025 c = repo['.'] |
1026 if l: |
1026 if l: |
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') |
1037 |
1038 |
1038 files = c.manifest().walk(matcher) |
1039 files = c.manifest().walk(matcher) |