Merge with stable
authorMartin Geisler <mg@lazybytes.net>
Wed, 20 Jan 2010 16:58:48 +0100
changeset 10270 c2e27f7966a7
parent 10267 7e3a685be2f3 (current diff)
parent 10269 acf001ee5ef8 (diff)
child 10271 9b38bec5dc29
Merge with stable
mercurial/commands.py
--- a/contrib/mercurial.el	Sun Jan 17 01:53:04 2010 +0100
+++ b/contrib/mercurial.el	Wed Jan 20 16:58:48 2010 +0100
@@ -5,8 +5,8 @@
 ;; Author: Bryan O'Sullivan <bos@serpentine.com>
 
 ;; mercurial.el is free software; you can redistribute it and/or
-;; modify it under the terms of the GNU General Public License or any
-;; later version.
+;; modify it under the terms of the GNU General Public License version
+;; 2 or any later version.
 
 ;; mercurial.el is distributed in the hope that it will be useful, but
 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
--- a/mercurial/commands.py	Sun Jan 17 01:53:04 2010 +0100
+++ b/mercurial/commands.py	Wed Jan 20 16:58:48 2010 +0100
@@ -2944,6 +2944,7 @@
             t.append(l % len(s))
 
     t = ', '.join(t)
+    cleanworkdir = False
 
     if len(parents) > 1:
         t += _(' (merge)')
@@ -2951,10 +2952,11 @@
         t += _(' (new branch)')
     elif (not st[0] and not st[1] and not st[2]):
         t += _(' (clean)')
+        cleanworkdir = True
     elif pnode not in bheads:
         t += _(' (new branch head)')
 
-    if 'clean' in t:
+    if cleanworkdir:
         ui.status(_('commit: %s\n') % t.strip())
     else:
         ui.write(_('commit: %s\n') % t.strip())