[issue359] Per-host remotecmd option in .hgrc
Nathaniel Filardo
mercurial-bugs at selenic.com
Wed Sep 6 13:10:36 UTC 2006
New submission from Nathaniel Filardo <nwf+mercurialbts at andrew.cmu.edu>:
I would like to be able to specify per-remote-host remotecmd options in my
~/.hgrc file. The diff to enable this is simple and small:
diff -r 5e39ad2c8b52 mercurial/sshrepo.py
--- a/mercurial/sshrepo.py Tue Jun 27 01:41:07 2006 +0300
+++ b/mercurial/sshrepo.py Wed Sep 06 09:10:34 2006 -0400
@@ -30,6 +30,7 @@ class sshrepository(remoterepository):
sshcmd = self.ui.config("ui", "ssh", "ssh")
remotecmd = self.ui.config("ui", "remotecmd", "hg")
+ remotecmd = self.ui.config("ui", "remotecmd.%s" % self.host,
remotecmd);
if create:
try:
Other options, such as per-host&port may also be desirable?
----------
messages: 1870
nosy: nwf
priority: wish
status: unread
title: Per-host remotecmd option in .hgrc
topic: ssh_proto, ui
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue359>
____________________________________________________
More information about the Mercurial
mailing list