Show More
@@ -782,15 +782,6 b' class localrepository(repo.repository):' | |||
|
782 | 782 | supplied, it is called to get a commit message. |
|
783 | 783 | """ |
|
784 | 784 | |
|
785 | wlock = self.wlock() | |
|
786 | try: | |
|
787 | p1, p2 = self.dirstate.parents() | |
|
788 | ||
|
789 | if (not force and p2 != nullid and match and | |
|
790 | (match.files() or match.anypats())): | |
|
791 | raise util.Abort(_('cannot partially commit a merge ' | |
|
792 | '(do not specify files or patterns)')) | |
|
793 | ||
|
794 | 785 |
|
|
795 | 786 |
|
|
796 | 787 | |
@@ -802,6 +793,15 b' class localrepository(repo.repository):' | |||
|
802 | 793 |
|
|
803 | 794 |
|
|
804 | 795 | |
|
796 | wlock = self.wlock() | |
|
797 | try: | |
|
798 | p1, p2 = self.dirstate.parents() | |
|
799 | ||
|
800 | if (not force and p2 != nullid and match and | |
|
801 | (match.files() or match.anypats())): | |
|
802 | raise util.Abort(_('cannot partially commit a merge ' | |
|
803 | '(do not specify files or patterns)')) | |
|
804 | ||
|
805 | 805 | changes = self.status(match=match, clean=force) |
|
806 | 806 | if force: |
|
807 | 807 | changes[0].extend(changes[6]) # mq may commit unchanged files |
General Comments 0
You need to be logged in to leave comments.
Login now