##// END OF EJS Templates
logcmdutil: add a type annotation...
Augie Fackler -
r44100:c9301ac7 default
parent child Browse files
Show More
@@ -42,6 +42,16 b' from .utils import ('
42 )
42 )
43
43
44
44
45 if not globals():
46 from typing import (
47 Any,
48 Tuple,
49 )
50
51 for t in (Any, Tuple):
52 assert t
53
54
45 def getlimit(opts):
55 def getlimit(opts):
46 """get the log limit according to option -l/--limit"""
56 """get the log limit according to option -l/--limit"""
47 limit = opts.get(b'limit')
57 limit = opts.get(b'limit')
@@ -843,6 +853,7 b' def _initialrevs(repo, opts):'
843
853
844
854
845 def getrevs(repo, pats, opts):
855 def getrevs(repo, pats, opts):
856 # type: (Any, Any, Any) -> Tuple[smartset.BaseSet, changesetdiffer]
846 """Return (revs, differ) where revs is a smartset
857 """Return (revs, differ) where revs is a smartset
847
858
848 differ is a changesetdiffer with pre-configured file matcher.
859 differ is a changesetdiffer with pre-configured file matcher.
General Comments 0
You need to be logged in to leave comments. Login now