943 Args: |
943 Args: |
944 command: The full, non-aliased name of the command. That is, "log" |
944 command: The full, non-aliased name of the command. That is, "log" |
945 not "history, "summary" not "summ", etc. |
945 not "history, "summary" not "summ", etc. |
946 """ |
946 """ |
947 if (self._disablepager |
947 if (self._disablepager |
948 or self.pageractive |
948 or self.pageractive): |
949 or command in self.configlist('pager', 'ignore') |
949 # how pager should do is already determined |
|
950 return |
|
951 |
|
952 if not command.startswith('internal-always-') and ( |
|
953 # explicit --pager=on (= 'internal-always-' prefix) should |
|
954 # take precedence over disabling factors below |
|
955 command in self.configlist('pager', 'ignore') |
950 or not self.configbool('ui', 'paginate') |
956 or not self.configbool('ui', 'paginate') |
951 or not self.configbool('pager', 'attend-' + command, True) |
957 or not self.configbool('pager', 'attend-' + command, True) |
952 # TODO: if we want to allow HGPLAINEXCEPT=pager, |
958 # TODO: if we want to allow HGPLAINEXCEPT=pager, |
953 # formatted() will need some adjustment. |
959 # formatted() will need some adjustment. |
954 or not self.formatted() |
960 or not self.formatted() |