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 | if branchname: | |
|
793 | extra["branch"] = branchname | |
|
794 | ||
|
795 | if use_dirstate: | |
|
792 | 796 | lines = [line.rstrip() for line in text.rstrip().splitlines()] |
|
793 | 797 | while lines and not lines[0]: |
|
794 | 798 | del lines[0] |
|
795 | 799 | if not lines: |
|
796 | 800 | return None |
|
797 | 801 | text = '\n'.join(lines) |
|
798 | if branchname: | |
|
799 | extra["branch"] = branchname | |
|
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