[PATCH 8 of 9 paths v2] commands.push: begin transition to path API

Matt Mackall mpm at selenic.com
Tue Mar 3 17:46:16 CST 2015


On Sun, 2015-03-01 at 13:50 -0800, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1423427820 28800
> #      Sun Feb 08 12:37:00 2015 -0800
> # Node ID 86b20c6cbde1cf67e7401f7541cbfca233d34362
> # Parent  a18ef66b7b91f6ab396683330e849bc8009c7ad8
> commands.push: begin transition to path API
> 
> This patch begins the process of converting "hg push" to use the new
> path API.
> 
> Currently, we only handle detecting the case where the path could not
> be resolved.
> 
> This changes output in the case where the default path is not configured.
> We drop a "pushing to default" line. I believe losing this output is
> acceptable, as the error message is actionable.

I feel like we just changed this.. ahh, here it is:

# HG changeset patch
# User Thomas Arendsen Hein <thomas at intevation.de>
# Date 1424771724 -3600
#      Tue Feb 24 10:55:24 2015 +0100
# Node ID eabe44ec5af51b6a892eceea00ea6e4af40c4635
# Parent  dcfdfd63bde469310b74746d376d095a7dec4ea5
pull: print "pulling from foo" before accessing the other repo

1. This is consistent with pushing.
2. This allows to see the URL of the other repo in case accessing the repo
   fails, e.g. wrong ssh path or issues with the https certificate, without
   using --debug or showconfig paths.



You just broke (1) and (2) seems reasonably valid?

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list