Commits

Augie Fackler committed 06d67bd

Basic outline of how --continue will work.

Comments (0)

Files changed (1)

     assert False
 
 def edit(ui, repo, ctx, ha):
+    ui.status('Make changes as needed, you may commit or record as '
+              'needed now.\n')
+    ui.status('When you are finished, run hg histedit --continue to resume.')
     assert False
 
 def squash(ui, repo, ctx, ha):
                's': squash,
                'squash': squash,
                }
-def histedit(ui, repo, parent, **opts):
+def histedit(ui, repo, *parent, **opts):
     """<parent>
     """
+    if opts.get('continue', False):
+        if len(parent) != 0:
+            raise util.Abort('no arguments allowed with --continue')
+        raise util.Abort('This part not done.')
     tip, empty = repo.dirstate.parents()
 
     cmdutil.bail_if_changed(repo)
 
+    if len(parent) != 1:
+        raise util.Abort('requires exactly one parent revision')
+    parent = parent[0]
+
     revs = between(repo, parent, tip)
 
     rules = '\n'.join([('pick %s %s' % (c.hex()[:12],
 cmdtable = {
     "histedit":
         (histedit,
-         [],
+         [('c', 'continue', False, 'continue an edit already in progress.', ),
+          ],
          __doc__,
          ),
 }