mercurial/revset.py
changeset 30178 d61c42c1a35c
parent 30071 2def3d55b1b9
child 30179 cdef35b38026
equal deleted inserted replaced
30177:9626022feaa4 30178:d61c42c1a35c
  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)