comparison hgeditor @ 22393:293930a1fa0a

templater: implement __len__ for _hybrid Objects of class _hybrid are returned by such template keywords as children, bookmarks, tags and others, and also by revset() template function. They are representing "list of strings" (as hg help template says) for use in templates. So it would be logical to implement a handy way to count the number of strings in such list, and that's what __len__ method does.
author Anton Shestakov <engored@ya.ru>
date Mon, 08 Sep 2014 20:12:58 +0900
parents 2b440bb8a66b
children 1aee2ab0f902
comparison
equal deleted inserted replaced
22392:2dd1cbee569d 22393:293930a1fa0a