Show More
@@ -651,11 +651,11 b' class localrepository(repo.repository):' | |||
|
651 | 651 | if p1 is None: |
|
652 | 652 | p1, p2 = self.dirstate.parents() |
|
653 | 653 | return self.commit(files=files, text=text, user=user, date=date, |
|
654 | p1=p1, p2=p2, extra=extra) | |
|
654 | p1=p1, p2=p2, extra=extra, empty_ok=True) | |
|
655 | 655 | |
|
656 | 656 | def commit(self, files=None, text="", user=None, date=None, |
|
657 | 657 | match=util.always, force=False, force_editor=False, |
|
658 | p1=None, p2=None, extra={}): | |
|
658 | p1=None, p2=None, extra={}, empty_ok=False): | |
|
659 | 659 | wlock = lock = tr = None |
|
660 | 660 | try: |
|
661 | 661 | commit = [] |
@@ -768,7 +768,7 b' class localrepository(repo.repository):' | |||
|
768 | 768 | new.sort() |
|
769 | 769 | |
|
770 | 770 | user = user or self.ui.username() |
|
771 | if not text or force_editor: | |
|
771 | if (not empty_ok and not text) or force_editor: | |
|
772 | 772 | edittext = [] |
|
773 | 773 | if text: |
|
774 | 774 | edittext.append(text) |
General Comments 0
You need to be logged in to leave comments.
Login now