[PATCH] hg should provide hint when no paths configured
mpm at selenic.com
Sun Feb 9 16:08:57 CST 2014
On Mon, 2014-02-10 at 02:34 +0530, Anurag Goel wrote:
> # HG changeset patch
> # User anuraggoel <anurag.dsps at gmail.com>
> # Date 1391979569 -19800
> # Mon Feb 10 02:29:29 2014 +0530
> # Node ID 621cf9216b4a4378314e7ddf5d0ab36c95d46cfd
> # Parent fff0a71f8177be4ca634784d8b603c8e4d6c3601
> hg should provide hint when no paths configured
What is this line?
> push : hg should provide hint when no paths configured (issue3692)
This should be the first line. But there is an extra space before the
> Previously when user type the command "hg push" ,it directly push the
> file into default set path which if congiured in .hgrc file.
Which is 100% exactly the way it should work.
> But now it notifies user with mesaage showing location of default path
> and also prompt user whether he wants to continue or not.
Why would anyone want a confirmation prompt for the path they've already
configured? This is not what the bug report is asking for at all.
We ONLY want it to do something different if there is NO default path
and NO default-push path configured. In which case there is nothing to
prompt for, because there's nothing to do except abort. Instead, you
provide the user a HINT (see the 'hint' in your subject?) on how to
configure their default path. For instance:
$ hg push
abort: no default path configured
(see the 'path' section in 'hg help config') <- this is a hint
> + choice=raw_input()
This line doesn't pass check-code.
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel