13 from ..HgExtension import HgExtension |
13 from ..HgExtension import HgExtension |
14 |
14 |
15 |
15 |
16 class Closehead(HgExtension): |
16 class Closehead(HgExtension): |
17 """ |
17 """ |
18 Class implementing the strip extension interface. |
18 Class implementing the closehead extension interface. |
19 """ |
19 """ |
20 |
20 |
21 def __init__(self, vcs, ui=None): |
21 def __init__(self, vcs, ui=None): |
22 """ |
22 """ |
23 Constructor |
23 Constructor |
31 |
31 |
32 def hgCloseheads(self, revisions=None): |
32 def hgCloseheads(self, revisions=None): |
33 """ |
33 """ |
34 Public method to close arbitrary heads. |
34 Public method to close arbitrary heads. |
35 |
35 |
36 @param revisions revisions of branch heads to be closed |
36 @param revisions list of revisions of branch heads to be closed |
37 @type str |
37 @type list of str |
38 """ |
38 """ |
39 from .HgCloseHeadSelectionDialog import HgCloseHeadSelectionDialog |
39 from .HgCloseHeadSelectionDialog import HgCloseHeadSelectionDialog |
40 |
40 |
41 message = "" |
41 message = "" |
42 if not revisions: |
42 if not revisions: |