mercurial/revset.py
changeset 45701 b90d7e7f39db
parent 45686 17a12f53dd72
child 45725 99b8b73eb622
equal deleted inserted replaced
45700:c694b1841a5e 45701:b90d7e7f39db
  2285 
  2285 
  2286     return subset & s.filter(filter, condrepr=b'<roots>')
  2286     return subset & s.filter(filter, condrepr=b'<roots>')
  2287 
  2287 
  2288 
  2288 
  2289 _sortkeyfuncs = {
  2289 _sortkeyfuncs = {
  2290     b'rev': lambda c: c.rev(),
  2290     b'rev': scmutil.intrev,
  2291     b'branch': lambda c: c.branch(),
  2291     b'branch': lambda c: c.branch(),
  2292     b'desc': lambda c: c.description(),
  2292     b'desc': lambda c: c.description(),
  2293     b'user': lambda c: c.user(),
  2293     b'user': lambda c: c.user(),
  2294     b'author': lambda c: c.user(),
  2294     b'author': lambda c: c.user(),
  2295     b'date': lambda c: c.date()[0],
  2295     b'date': lambda c: c.date()[0],
  2296     b'node': lambda c: c.node(),
  2296     b'node': scmutil.binnode,
  2297 }
  2297 }
  2298 
  2298 
  2299 
  2299 
  2300 def _getsortargs(x):
  2300 def _getsortargs(x):
  2301     """Parse sort options into (set, [(key, reverse)], opts)"""
  2301     """Parse sort options into (set, [(key, reverse)], opts)"""