[PATCH] contrib/mercurial.el: hg-outgoing path is set as 'default-push' which prevents it from working in repos which have the default path as just 'default'. Fixed that

Mads Kiilerich mads at kiilerich.com
Wed Oct 20 07:34:36 CDT 2010


On 10/20/2010 02:21 PM, timeless wrote:
> On Wed, Oct 20, 2010 at 3:17 PM, Azhagu Selvan SP<tamizhgeek at gmail.com>  wrote:
>> Fix found in this url - http://alexott.net/en/writings/emacs-vcs/EmacsMercurial.html
>
>> -(defcustom hg-outgoing-repository "default-push"
>> +(defcustom hg-outgoing-repository "default"
>
> Shouldn't this just be ""? If I have "default-push" and "default", I'm
> pretty sure I want mercurial to use default-push.

Currently there is no definitive answer.

Perhaps we could ui.fixconfig so it sets default-push to the value of 
default - if default is defined and default-push isn't. Then we wouldn't 
need the fallback mechanism here - and 7 other places.

/Mads


More information about the Mercurial-devel mailing list