##// 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,11 +883,10 b' class localrepository(repo.repository):'
883 if branchname:
883 if branchname:
884 extra["branch"] = branchname
884 extra["branch"] = branchname
885
885
886 if use_dirstate:
887 lines = [line.rstrip() for line in text.rstrip().splitlines()]
886 lines = [line.rstrip() for line in text.rstrip().splitlines()]
888 while lines and not lines[0]:
887 while lines and not lines[0]:
889 del lines[0]
888 del lines[0]
890 if not lines:
889 if not lines and use_dirstate:
891 raise util.Abort(_("empty commit message"))
890 raise util.Abort(_("empty commit message"))
892 text = '\n'.join(lines)
891 text = '\n'.join(lines)
893
892
@@ -10,10 +10,10 b' 3 t3'
10 2 t4.1
10 2 t4.1
11 1 t4.2
11 1 t4.2
12 0 Merge branch other
12 0 Merge branch other
13 changeset: 5:c6d72c98aa00
13 changeset: 5:4ab1af49a271
14 tag: tip
14 tag: tip
15 parent: 3:a18bdfccf429
15 parent: 3:0222ab0998d7
16 parent: 4:48cb5b72ce56
16 parent: 4:5333c870e3c2
17 user: test <test@example.org>
17 user: test <test@example.org>
18 date: Mon Jan 01 00:00:15 2007 +0000
18 date: Mon Jan 01 00:00:15 2007 +0000
19 files: a
19 files: a
General Comments 0
You need to be logged in to leave comments. Login now