-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templater: add optional integer type
In order to port "branch list" to template, we need to somehow represent revset.count_estimate() result as a template property. I'm going to add SizeHint template type for that, and its .upper() and .exact() methods will have to return optional integers. Fortunately, the Integer type has no implicit conversion to bool, so "if(optional_integer, ..)" is not ambiguous.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters