##// END OF EJS Templates
typing: drop annotations on `mercurial/logcmdutil.walkopts` attributes...
Matt Harbison -
r48827:0dc4cc65 default
parent child Browse files
Show More
@@ -46,13 +46,12 b' if pycompat.TYPE_CHECKING:'
46 46 Any,
47 47 Callable,
48 48 Dict,
49 List,
50 49 Optional,
51 50 Sequence,
52 51 Tuple,
53 52 )
54 53
55 for t in (Any, Callable, Dict, List, Optional, Tuple):
54 for t in (Any, Callable, Dict, Optional, Tuple):
56 55 assert t
57 56
58 57
@@ -714,43 +713,43 b' class walkopts(object):'
714 713 """
715 714
716 715 # raw command-line parameters, which a matcher will be built from
717 pats = attr.ib() # type: List[bytes]
718 opts = attr.ib() # type: Dict[bytes, Any]
716 pats = attr.ib()
717 opts = attr.ib()
719 718
720 719 # a list of revset expressions to be traversed; if follow, it specifies
721 720 # the start revisions
722 revspec = attr.ib() # type: List[bytes]
721 revspec = attr.ib()
723 722
724 723 # miscellaneous queries to filter revisions (see "hg help log" for details)
725 bookmarks = attr.ib(default=attr.Factory(list)) # type: List[bytes]
726 branches = attr.ib(default=attr.Factory(list)) # type: List[bytes]
727 date = attr.ib(default=None) # type: Optional[bytes]
728 keywords = attr.ib(default=attr.Factory(list)) # type: List[bytes]
729 no_merges = attr.ib(default=False) # type: bool
730 only_merges = attr.ib(default=False) # type: bool
731 prune_ancestors = attr.ib(default=attr.Factory(list)) # type: List[bytes]
732 users = attr.ib(default=attr.Factory(list)) # type: List[bytes]
724 bookmarks = attr.ib(default=attr.Factory(list))
725 branches = attr.ib(default=attr.Factory(list))
726 date = attr.ib(default=None)
727 keywords = attr.ib(default=attr.Factory(list))
728 no_merges = attr.ib(default=False)
729 only_merges = attr.ib(default=False)
730 prune_ancestors = attr.ib(default=attr.Factory(list))
731 users = attr.ib(default=attr.Factory(list))
733 732
734 733 # miscellaneous matcher arguments
735 include_pats = attr.ib(default=attr.Factory(list)) # type: List[bytes]
736 exclude_pats = attr.ib(default=attr.Factory(list)) # type: List[bytes]
734 include_pats = attr.ib(default=attr.Factory(list))
735 exclude_pats = attr.ib(default=attr.Factory(list))
737 736
738 737 # 0: no follow, 1: follow first, 2: follow both parents
739 follow = attr.ib(default=0) # type: int
738 follow = attr.ib(default=0)
740 739
741 740 # do not attempt filelog-based traversal, which may be fast but cannot
742 741 # include revisions where files were removed
743 force_changelog_traversal = attr.ib(default=False) # type: bool
742 force_changelog_traversal = attr.ib(default=False)
744 743
745 744 # filter revisions by file patterns, which should be disabled only if
746 745 # you want to include revisions where files were unmodified
747 filter_revisions_by_pats = attr.ib(default=True) # type: bool
746 filter_revisions_by_pats = attr.ib(default=True)
748 747
749 748 # sort revisions prior to traversal: 'desc', 'topo', or None
750 sort_revisions = attr.ib(default=None) # type: Optional[bytes]
749 sort_revisions = attr.ib(default=None)
751 750
752 751 # limit number of changes displayed; None means unlimited
753 limit = attr.ib(default=None) # type: Optional[int]
752 limit = attr.ib(default=None)
754 753
755 754
756 755 def parseopts(ui, pats, opts):
General Comments 0
You need to be logged in to leave comments. Login now