##// END OF EJS Templates
Clarify some messages during commit:...
Thomas Arendsen Hein -
r5757:c5793dad default
parent child Browse files
Show More
@@ -799,13 +799,14 b' class localrepository(repo.repository):'
799 if text:
799 if text:
800 edittext.append(text)
800 edittext.append(text)
801 edittext.append("")
801 edittext.append("")
802 edittext.append(_("HG: Please write and save a commit message"))
802 edittext.append(_("HG: Enter commit message."
803 " Lines beginning with 'HG:' are removed."))
803 edittext.append("HG: --")
804 edittext.append("HG: --")
804 edittext.append("HG: user: %s" % user)
805 edittext.append("HG: user: %s" % user)
805 if p2 != nullid:
806 if p2 != nullid:
806 edittext.append("HG: branch merge")
807 edittext.append("HG: branch merge")
807 if branchname:
808 if branchname:
808 edittext.append("HG: branch %s" % util.tolocal(branchname))
809 edittext.append("HG: branch '%s'" % util.tolocal(branchname))
809 edittext.extend(["HG: changed %s" % f for f in changed])
810 edittext.extend(["HG: changed %s" % f for f in changed])
810 edittext.extend(["HG: removed %s" % f for f in removed])
811 edittext.extend(["HG: removed %s" % f for f in removed])
811 if not changed and not remove:
812 if not changed and not remove:
@@ -825,7 +826,7 b' class localrepository(repo.repository):'
825 while lines and not lines[0]:
826 while lines and not lines[0]:
826 del lines[0]
827 del lines[0]
827 if not lines:
828 if not lines:
828 raise util.Abort(_("commit message cannot be left blank"))
829 raise util.Abort(_("empty commit message"))
829 text = '\n'.join(lines)
830 text = '\n'.join(lines)
830
831
831 n = self.changelog.add(mn, changed + removed, text, trp, p1, p2,
832 n = self.changelog.add(mn, changed + removed, text, trp, p1, p2,
@@ -1,7 +1,7 b''
1 % commit date test
1 % commit date test
2 transaction abort!
2 transaction abort!
3 rollback completed
3 rollback completed
4 abort: commit message cannot be left blank
4 abort: empty commit message
5 transaction abort!
5 transaction abort!
6 rollback completed
6 rollback completed
7 abort: impossible time zone offset: 4444444
7 abort: impossible time zone offset: 4444444
@@ -22,7 +22,7 b' 2 files updated, 0 files merged, 0 files'
22 applying ../tip.patch
22 applying ../tip.patch
23 transaction abort!
23 transaction abort!
24 rollback completed
24 rollback completed
25 abort: commit message cannot be left blank
25 abort: empty commit message
26 % import of plain diff should be ok with message
26 % import of plain diff should be ok with message
27 requesting all changes
27 requesting all changes
28 adding changesets
28 adding changesets
@@ -92,7 +92,7 b' 2 files updated, 0 files merged, 0 files'
92 applying patch from stdin
92 applying patch from stdin
93 transaction abort!
93 transaction abort!
94 rollback completed
94 rollback completed
95 abort: commit message cannot be left blank
95 abort: empty commit message
96 % hg export in email, should use patch header
96 % hg export in email, should use patch header
97 requesting all changes
97 requesting all changes
98 adding changesets
98 adding changesets
@@ -50,7 +50,7 b' diff --git a/empty-rw b/empty-rw'
50 new file mode 100644
50 new file mode 100644
51 examine changes to 'empty-rw'? [Ynsfdaq?] transaction abort!
51 examine changes to 'empty-rw'? [Ynsfdaq?] transaction abort!
52 rollback completed
52 rollback completed
53 abort: commit message cannot be left blank
53 abort: empty commit message
54
54
55 changeset: -1:000000000000
55 changeset: -1:000000000000
56 tag: tip
56 tag: tip
General Comments 0
You need to be logged in to leave comments. Login now