mercurial/logcmdutil.py
changeset 46794 e2f7b2695ba1
parent 46675 6f4a481f182a
parent 46682 8f8fce2dd594
child 46819 d4ba4d51f85f
equal deleted inserted replaced
46782:6b52cffd8d0a 46794:e2f7b2695ba1
    50         Any,
    50         Any,
    51         Callable,
    51         Callable,
    52         Dict,
    52         Dict,
    53         List,
    53         List,
    54         Optional,
    54         Optional,
       
    55         Sequence,
    55         Tuple,
    56         Tuple,
    56     )
    57     )
    57 
    58 
    58     for t in (Any, Callable, Dict, List, Optional, Tuple):
    59     for t in (Any, Callable, Dict, List, Optional, Tuple):
    59         assert t
    60         assert t
   752     # limit number of changes displayed; None means unlimited
   753     # limit number of changes displayed; None means unlimited
   753     limit = attr.ib(default=None)  # type: Optional[int]
   754     limit = attr.ib(default=None)  # type: Optional[int]
   754 
   755 
   755 
   756 
   756 def parseopts(ui, pats, opts):
   757 def parseopts(ui, pats, opts):
   757     # type: (Any, List[bytes], Dict[bytes, Any]) -> walkopts
   758     # type: (Any, Sequence[bytes], Dict[bytes, Any]) -> walkopts
   758     """Parse log command options into walkopts
   759     """Parse log command options into walkopts
   759 
   760 
   760     The returned walkopts will be passed in to getrevs() or makewalker().
   761     The returned walkopts will be passed in to getrevs() or makewalker().
   761     """
   762     """
   762     if opts.get(b'follow_first'):
   763     if opts.get(b'follow_first'):