24 |
24 |
25 # flag in obsolescence markers to link to identical version |
25 # flag in obsolescence markers to link to identical version |
26 identicalflag = 4 |
26 identicalflag = 4 |
27 |
27 |
28 @eh.command( |
28 @eh.command( |
29 'rewind|undo', |
29 b'rewind|undo', |
30 [('', 'to', [], _("rewind to these revisions"), _('REV')), |
30 [(b'', b'to', [], _(b"rewind to these revisions"), _(b'REV')), |
31 ('', 'as-divergence', None, _("preserve current latest successors")), |
31 (b'', b'as-divergence', None, _(b"preserve current latest successors")), |
32 ('', 'exact', None, _("only rewind explicitly selected revisions")), |
32 (b'', b'exact', None, _(b"only rewind explicitly selected revisions")), |
33 ('', 'from', [], |
33 (b'', b'from', [], |
34 _("rewind these revisions to their predecessors"), _('REV')), |
34 _(b"rewind these revisions to their predecessors"), _(b'REV')), |
35 ], |
35 ], |
36 _(''), |
36 _(b''), |
37 helpbasic=True) |
37 helpbasic=True) |
38 def rewind(ui, repo, **opts): |
38 def rewind(ui, repo, **opts): |
39 """rewind a stack of changesets to a previous state |
39 """rewind a stack of changesets to a previous state |
40 |
40 |
41 This command can be used to restore stacks of changesets to an obsolete |
41 This command can be used to restore stacks of changesets to an obsolete |