Show More
@@ -782,15 +782,6 b' class localrepository(repo.repository):' | |||||
782 | supplied, it is called to get a commit message. |
|
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 | def fail(f, msg): | |
795 |
|
|
786 | raise util.Abort('%s: %s' % (f, msg)) | |
796 |
|
787 | |||
@@ -802,6 +793,15 b' class localrepository(repo.repository):' | |||||
802 |
|
|
793 | match.dir = vdirs.append | |
803 |
|
|
794 | match.bad = fail | |
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 | changes = self.status(match=match, clean=force) |
|
805 | changes = self.status(match=match, clean=force) | |
806 | if force: |
|
806 | if force: | |
807 | changes[0].extend(changes[6]) # mq may commit unchanged files |
|
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