18 class Queues(HgExtension): |
18 class Queues(HgExtension): |
19 """ |
19 """ |
20 Class implementing the queues extension interface. |
20 Class implementing the queues extension interface. |
21 """ |
21 """ |
22 |
22 |
|
23 # TODO: change this to an enum |
23 APPLIED_LIST = 0 |
24 APPLIED_LIST = 0 |
24 UNAPPLIED_LIST = 1 |
25 UNAPPLIED_LIST = 1 |
25 SERIES_LIST = 2 |
26 SERIES_LIST = 2 |
26 |
27 |
|
28 # TODO: change this to an enum |
27 POP = 0 |
29 POP = 0 |
28 PUSH = 1 |
30 PUSH = 1 |
29 GOTO = 2 |
31 GOTO = 2 |
30 |
32 |
|
33 # TODO: change this to an enum |
31 QUEUE_DELETE = 0 |
34 QUEUE_DELETE = 0 |
32 QUEUE_PURGE = 1 |
35 QUEUE_PURGE = 1 |
33 QUEUE_ACTIVATE = 2 |
36 QUEUE_ACTIVATE = 2 |
34 |
37 |
35 def __init__(self, vcs): |
38 def __init__(self, vcs): |