Show More
@@ -789,14 +789,17 b' class localrepository(repo.repository):' | |||
|
789 | 789 | text = self.ui.edit("\n".join(edittext), user) |
|
790 | 790 | os.chdir(olddir) |
|
791 | 791 | |
|
792 | lines = [line.rstrip() for line in text.rstrip().splitlines()] | |
|
793 | while lines and not lines[0]: | |
|
794 | del lines[0] | |
|
795 | if not lines: | |
|
796 | return None | |
|
797 | text = '\n'.join(lines) | |
|
798 | 792 | if branchname: |
|
799 | 793 | extra["branch"] = branchname |
|
794 | ||
|
795 | if use_dirstate: | |
|
796 | lines = [line.rstrip() for line in text.rstrip().splitlines()] | |
|
797 | while lines and not lines[0]: | |
|
798 | del lines[0] | |
|
799 | if not lines: | |
|
800 | return None | |
|
801 | text = '\n'.join(lines) | |
|
802 | ||
|
800 | 803 | n = self.changelog.add(mn, changed + removed, text, trp, p1, p2, |
|
801 | 804 | user, date, extra) |
|
802 | 805 | self.hook('pretxncommit', throw=True, node=hex(n), parent1=xp1, |
General Comments 0
You need to be logged in to leave comments.
Login now