Show More
@@ -551,6 +551,6 def remoteui(src, opts): | |||||
551 | dst.setconfig(sect, key, val) |
|
551 | dst.setconfig(sect, key, val) | |
552 | v = src.config('web', 'cacerts') |
|
552 | v = src.config('web', 'cacerts') | |
553 | if v: |
|
553 | if v: | |
554 | dst.setconfig('web', 'cacerts', v) |
|
554 | dst.setconfig('web', 'cacerts', util.expandpath(v)) | |
555 |
|
555 | |||
556 | return dst |
|
556 | return dst |
@@ -512,6 +512,8 if has_https: | |||||
512 | def connect(self): |
|
512 | def connect(self): | |
513 | if hasattr(self, 'ui'): |
|
513 | if hasattr(self, 'ui'): | |
514 | cacerts = self.ui.config('web', 'cacerts') |
|
514 | cacerts = self.ui.config('web', 'cacerts') | |
|
515 | if cacerts: | |||
|
516 | cacerts = util.expandpath(cacerts) | |||
515 | else: |
|
517 | else: | |
516 | cacerts = None |
|
518 | cacerts = None | |
517 |
|
519 |
@@ -154,11 +154,12 cacert configured in local repo | |||||
154 | no changes found |
|
154 | no changes found | |
155 | $ mv copy-pull/.hg/hgrc.bu copy-pull/.hg/hgrc |
|
155 | $ mv copy-pull/.hg/hgrc.bu copy-pull/.hg/hgrc | |
156 |
|
156 | |||
157 | cacert configured globally |
|
157 | cacert configured globally, also testing expansion of environment | |
|
158 | variables in the filename | |||
158 |
|
159 | |||
159 | $ echo "[web]" >> $HGRCPATH |
|
160 | $ echo "[web]" >> $HGRCPATH | |
160 |
$ echo |
|
161 | $ echo 'cacerts=$P/pub.pem' >> $HGRCPATH | |
161 | $ hg -R copy-pull pull |
|
162 | $ P=`pwd` hg -R copy-pull pull | |
162 | pulling from https://localhost:$HGPORT/ |
|
163 | pulling from https://localhost:$HGPORT/ | |
163 | searching for changes |
|
164 | searching for changes | |
164 | no changes found |
|
165 | no changes found |
General Comments 0
You need to be logged in to leave comments.
Login now