changeset 17340:96189d60d810 stable

merge with i18n
author Matt Mackall <mpm@selenic.com>
date Mon, 06 Aug 2012 12:03:07 -0500
parents b5c560787a4e (diff) 94b77f8858bd (current diff)
children b131e24e2984 471f30d360ea 0a0290eb068e
files hgext/histedit.py
diffstat 4 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Mon Aug 06 18:15:16 2012 +0400
+++ b/hgext/histedit.py	Mon Aug 06 12:03:07 2012 -0500
@@ -33,7 +33,7 @@
  # Commands:
  #  p, pick = use commit
  #  e, edit = use commit, but stop for amending
- #  f, fold = use commit, but fold into previous commit
+ #  f, fold = use commit, but fold into previous commit (combines N and N-1)
  #  d, drop = remove commit from history
  #  m, mess = edit message without changing commit content
  #
@@ -52,7 +52,7 @@
  # Commands:
  #  p, pick = use commit
  #  e, edit = use commit, but stop for amending
- #  f, fold = use commit, but fold into previous commit
+ #  f, fold = use commit, but fold into previous commit (combines N and N-1)
  #  d, drop = remove commit from history
  #  m, mess = edit message without changing commit content
  #
--- a/mercurial/help/hgweb.txt	Mon Aug 06 18:15:16 2012 +0400
+++ b/mercurial/help/hgweb.txt	Mon Aug 06 12:03:07 2012 -0500
@@ -46,5 +46,5 @@
 - The fourth entry will publish both ``http://server/user/bob/quux/``
   and ``http://server/user/bob/quux/testsubrepo/``
 
-The ``collections`` section is deprecated and has been superseeded by
+The ``collections`` section is deprecated and has been superseded by
 ``paths``.
--- a/mercurial/templater.py	Mon Aug 06 18:15:16 2012 +0400
+++ b/mercurial/templater.py	Mon Aug 06 12:03:07 2012 -0500
@@ -295,6 +295,8 @@
         conf.read(mapfile)
 
         for key, val in conf[''].items():
+            if not val:
+                raise SyntaxError(_('%s: missing value') % conf.source('', key))
             if val[0] in "'\"":
                 try:
                     self.cache[key] = parsestring(val)
--- a/tests/test-command-template.t	Mon Aug 06 18:15:16 2012 +0400
+++ b/tests/test-command-template.t	Mon Aug 06 12:03:07 2012 -0500
@@ -463,6 +463,13 @@
   abort: "changeset" not in template map
   [255]
 
+Error if style missing value:
+
+  $ echo 'changeset =' > t
+  $ hg log --style t
+  abort: t:1: missing value
+  [255]
+
 Error if include fails:
 
   $ echo 'changeset = q' >> t