##// END OF EJS Templates
localrepo.commit: normalize commit message even for rawcommit....
Alexis S. L. Carvalho -
r6254:3667b6e4 default
parent child Browse files
Show More
@@ -883,13 +883,12 b' class localrepository(repo.repository):'
883 883 if branchname:
884 884 extra["branch"] = branchname
885 885
886 if use_dirstate:
887 lines = [line.rstrip() for line in text.rstrip().splitlines()]
888 while lines and not lines[0]:
889 del lines[0]
890 if not lines:
891 raise util.Abort(_("empty commit message"))
892 text = '\n'.join(lines)
886 lines = [line.rstrip() for line in text.rstrip().splitlines()]
887 while lines and not lines[0]:
888 del lines[0]
889 if not lines and use_dirstate:
890 raise util.Abort(_("empty commit message"))
891 text = '\n'.join(lines)
893 892
894 893 n = self.changelog.add(mn, changed + removed, text, trp, p1, p2,
895 894 user, date, extra)
@@ -10,10 +10,10 b' 3 t3'
10 10 2 t4.1
11 11 1 t4.2
12 12 0 Merge branch other
13 changeset: 5:c6d72c98aa00
13 changeset: 5:4ab1af49a271
14 14 tag: tip
15 parent: 3:a18bdfccf429
16 parent: 4:48cb5b72ce56
15 parent: 3:0222ab0998d7
16 parent: 4:5333c870e3c2
17 17 user: test <test@example.org>
18 18 date: Mon Jan 01 00:00:15 2007 +0000
19 19 files: a
General Comments 0
You need to be logged in to leave comments. Login now