[PATCH 1 of 9] pull: for pull --update with failed update, print hint if any
Siddharth Agarwal
sid0 at fb.com
Tue Sep 24 04:50:58 UTC 2013
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1379988152 25200
# Mon Sep 23 19:02:32 2013 -0700
# Node ID 8c6dfa8dcc7a0afc32dad974efcd0070b05e4379
# Parent 8a380fb61a35d5d0528adeb3716ec7d3b4f920a7
pull: for pull --update with failed update, print hint if any
An upcoming patch will add a hint to the abort message, and we don't want to
lose that here.
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4527,6 +4527,8 @@
ret = hg.update(repo, checkout)
except util.Abort, inst:
ui.warn(_("not updating: %s\n") % str(inst))
+ if inst.hint:
+ ui.warn(_("(%s)\n") % inst.hint)
return 0
if not ret and not checkout:
if bookmarks.update(repo, [movemarkfrom], repo['.'].node()):
More information about the Mercurial-devel
mailing list