diff mercurial/cmdutil.py @ 22305:bdc0e04df243

merge with stable
author Matt Mackall <mpm@selenic.com>
date Wed, 27 Aug 2014 18:35:34 +0200
parents 650b5b6e75ed 0c838e7459a5
children 45e02cfad4bd
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sat Aug 23 21:23:02 2014 +0900
+++ b/mercurial/cmdutil.py	Wed Aug 27 18:35:34 2014 +0200
@@ -651,6 +651,9 @@
                     p2 = repo[nullid]
             except error.RepoError:
                 p1, p2 = parents
+            if p2.node() == nullid:
+                ui.warn(_("warning: import the patch as a normal revision\n"
+                          "(use --exact to import the patch as a merge)\n"))
         else:
             p1, p2 = parents
 
@@ -911,9 +914,10 @@
             self.ui.write(_("phase:       %s\n") % _(ctx.phasestr()),
                           label='log.phase')
         for parent in parents:
+            label = 'log.parent changeset.%s' % self.repo[parent[0]].phasestr()
             # i18n: column positioning for "hg log"
             self.ui.write(_("parent:      %d:%s\n") % parent,
-                          label='log.parent changeset.%s' % ctx.phasestr())
+                          label=label)
 
         if self.ui.debugflag:
             mnode = ctx.manifestnode()