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)""" |