mercurial/cmdutil.py
changeset 5836 c5c9a022bd9a
parent 5829 784073457a0f
child 5843 83c354c4d529
equal deleted inserted replaced
5835:bd34f0ac3cb0 5836:c5c9a022bd9a
   900         return t
   900         return t
   901     return changeset_printer(ui, repo, patch, buffered)
   901     return changeset_printer(ui, repo, patch, buffered)
   902 
   902 
   903 def finddate(ui, repo, date):
   903 def finddate(ui, repo, date):
   904     """Find the tipmost changeset that matches the given date spec"""
   904     """Find the tipmost changeset that matches the given date spec"""
   905     df = util.matchdate(date + " to " + date)
   905     df = util.matchdate(date)
   906     get = util.cachefunc(lambda r: repo.changectx(r).changeset())
   906     get = util.cachefunc(lambda r: repo.changectx(r).changeset())
   907     changeiter, matchfn = walkchangerevs(ui, repo, [], get, {'rev':None})
   907     changeiter, matchfn = walkchangerevs(ui, repo, [], get, {'rev':None})
   908     results = {}
   908     results = {}
   909     for st, rev, fns in changeiter:
   909     for st, rev, fns in changeiter:
   910         if st == 'add':
   910         if st == 'add':