mercurial/logcmdutil.py
changeset 51287 f4a0806081f2
parent 51284 f15cb5111a1e
child 51725 278af66e6595
equal deleted inserted replaced
51286:7bd7fcc711f2 51287:f4a0806081f2
    45 )
    45 )
    46 from .utils import (
    46 from .utils import (
    47     dateutil,
    47     dateutil,
    48     stringutil,
    48     stringutil,
    49 )
    49 )
    50 
       
    51 # keeps pyflakes happy
       
    52 assert [
       
    53     Any,
       
    54     Callable,
       
    55     Dict,
       
    56     Optional,
       
    57     Sequence,
       
    58     Tuple,
       
    59 ]
       
    60 
       
    61 # keep pyflakes happy
       
    62 for t in (Any, Callable, Dict, Optional, Tuple):
       
    63     assert t
       
    64 
    50 
    65 
    51 
    66 def getlimit(opts):
    52 def getlimit(opts):
    67     """get the log limit according to option -l/--limit"""
    53     """get the log limit according to option -l/--limit"""
    68     limit = opts.get(b'limit')
    54     limit = opts.get(b'limit')