Commits

Christian Ebert committed f7f6a04

Abort when trying to crecord a merge

Analogous to feb2a58fc592 in main.

  • Participants
  • Parent commits 67bcb89

Comments (0)

Files changed (2)

File crecord/__init__.py

     You will be shown a list of patch hunks from which you can select
     those you would like to apply to the commit.
 
-    '''
+    This command is not available when committing a merge.'''
+
     dorecord(ui, repo, commands.commit, *pats, **opts)
 
 

File crecord/crecord_core.py

         In the end we'll record interesting changes, and everything else will be
         left in place, so the user can continue his work.
         """
+
+        merge = len(repo[None].parents()) > 1
+        if merge:
+            raise util.Abort(_('cannot partially commit a merge '
+                               '(use hg commit instead)'))
+
         if match.files():
             changes = None
         else: