Mercurial > public > mercurial-scm > hg
comparison mercurial/obsutil.py @ 34287:7cdc8c5a481a
templates: introduce a obsfateoperation() function
Differential Revision: https://phab.mercurial-scm.org/D723
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 15 Sep 2017 10:43:22 -0700 |
parents | 98fa777cd7a1 |
children | 014d467f9d08 |
comparison
equal
deleted
inserted
replaced
34286:ecc96506c49d | 34287:7cdc8c5a481a |
---|---|
644 """ | 644 """ |
645 markersmeta = [dict(m[3]) for m in markers] | 645 markersmeta = [dict(m[3]) for m in markers] |
646 users = set(meta.get('user') for meta in markersmeta if meta.get('user')) | 646 users = set(meta.get('user') for meta in markersmeta if meta.get('user')) |
647 | 647 |
648 return sorted(users) | 648 return sorted(users) |
649 | |
650 def markersoperations(markers): | |
651 """ Returns a sorted list of markers operations without duplicates | |
652 """ | |
653 markersmeta = [dict(m[3]) for m in markers] | |
654 operations = set(meta.get('operation') for meta in markersmeta | |
655 if meta.get('operation')) | |
656 | |
657 return sorted(operations) |