使用smartgit连接到mercurial存储库:如何注册更改的密码?

时间:2014-03-03 18:26:51

标签: mercurial smartgit

我已成功使用SmartGit访问Mercurial存储库。我最近更改了托管Mercurial的服务器上的密码。我的SmartGit项目现在无法进行身份验证(尝试推送更改时消息:“abort:authorization failed”)。我看不到任何注册新密码的方法。

(从存储库读取访问权限正常。它只在推送时失败。)

我找到了建议,转到偏好设置>身份验证并删除现有的“已知凭据”。但是,此存储库的凭据未在此处列出。它列出了我使用的许多Github存储库,但没有列出这个Mercurial存储库。

更多信息2014-03-04

在应用程序/实用程序中打开钥匙串应用程序。试图修改相关Web域的密码。没有成功。

尝试删除相关网域的条目。没有成功。

尝试从主服务器克隆新的存储库,并从中推送。没有成功。

发现并升级到SmartGit / HG 5.0.7。没有成功。但它确实提供了更详细的输出,转载于此:

Push
    ...
        url, req, headers)
      File "/Library/Python/2.7/site-packages/mercurial/url.py", line 431, in http_error_auth_reqed
        self, auth_header, host, req, headers)
      File "/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp/smartgit_http-0.py", line 56, in basic_http_error_auth_reqed
        return basic_http_error_auth_reqed.orig(self, authreq, host, req, headers)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 872, in http_error_auth_reqed
        response = self.retry_http_basic_auth(host, req, realm)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 885, in retry_http_basic_auth
        return self.parent.open(req, timeout=req.timeout)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
        response = meth(req, response)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
        'http', request, response, code, msg, hdrs)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
        result = self._call_chain(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
        result = func(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 897, in http_error_401
        url, req, headers)
      File "/Library/Python/2.7/site-packages/mercurial/url.py", line 431, in http_error_auth_reqed
        self, auth_header, host, req, headers)
      File "/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp/smartgit_http-0.py", line 56, in basic_http_error_auth_reqed
        return basic_http_error_auth_reqed.orig(self, authreq, host, req, headers)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 872, in http_error_auth_reqed
        response = self.retry_http_basic_auth(host, req, realm)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 885, in retry_http_basic_auth
        return self.parent.open(req, timeout=req.timeout)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
        response = meth(req, response)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
        'http', request, response, code, msg, hdrs)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
        result = self._call_chain(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
        result = func(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 897, in http_error_401
        url, req, headers)
      File "/Library/Python/2.7/site-packages/mercurial/url.py", line 431, in http_error_auth_reqed
        self, auth_header, host, req, headers)
      File "/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp/smartgit_http-0.py", line 56, in basic_http_error_auth_reqed
        return basic_http_error_auth_reqed.orig(self, authreq, host, req, headers)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 872, in http_error_auth_reqed
        response = self.retry_http_basic_auth(host, req, realm)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 885, in retry_http_basic_auth
        return self.parent.open(req, timeout=req.timeout)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
        response = meth(req, response)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
        'http', request, response, code, msg, hdrs)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
        result = self._call_chain(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
        result = func(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 897, in http_error_401
        url, req, headers)
      File "/Library/Python/2.7/site-packages/mercurial/url.py", line 431, in http_error_auth_reqed
        self, auth_header, host, req, headers)
      File "/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp/smartgit_http-0.py", line 56, in basic_http_error_auth_reqed
        return basic_http_error_auth_reqed.orig(self, authreq, host, req, headers)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 872, in http_error_auth_reqed
        response = self.retry_http_basic_auth(host, req, realm)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 885, in retry_http_basic_auth
        return self.parent.open(req, timeout=req.timeout)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
        response = meth(req, response)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
        'http', request, response, code, msg, hdrs)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
        result = self._call_chain(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
        result = func(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 897, in http_error_401
        url, req, headers)
      File "/Library/Python/2.7/site-packages/mercurial/url.py", line 431, in http_error_auth_reqed
        self, auth_header, host, req, headers)
      File "/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp/smartgit_http-0.py", line 56, in basic_http_error_auth_reqed
        return basic_http_error_auth_reqed.orig(self, authreq, host, req, headers)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 872, in http_error_auth_reqed
        response = self.retry_http_basic_auth(host, req, realm)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 885, in retry_http_basic_auth
        return self.parent.open(req, timeout=req.timeout)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
        response = meth(req, response)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
        'http', request, response, code, msg, hdrs)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
        result = self._call_chain(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
        result = func(*args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 897, in http_error_401
        url, req, headers)
      File "/Library/Python/2.7/site-packages/mercurial/url.py", line 431, in http_error_auth_reqed
        self, auth_header, host, req, headers)
      File "/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp/smartgit_http-0.py", line 58, in basic_http_error_auth_reqed
        call_smartgit("fail", host, self.passwd.ui)
      File "/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp/smartgit_http-0.py", line 38, in call_smartgit
        command, authuri])
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 575, in check_output
        raise CalledProcessError(retcode, cmd, output=output)
    subprocess.CalledProcessError: Command '['/Volumes/SmartGitHg 5.0.7.1/SmartGitHg 5.app/Contents/Resources/Plugins/JRE/Contents/Home/jre/bin/java', '-cp', '/Volumes/SmartGitHg 5.0.7.1/SmartGitHg 5.app/Contents/Resources/Java/log4j.jar:/Volumes/SmartGitHg 5.0.7.1/SmartGitHg 5.app/Contents/Resources/Java/smartgit.jar:/Volumes/SmartGitHg 5.0.7.1/SmartGitHg 5.app/Contents/Resources/Java/trilead.jar', '-Dsmartgit.port=4333', '-Dsmartgit.tempDir=/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp', '-Dsmartgit.id=7259439108629017519', 'com.syntevo.hgapp.file.state.transport.ShHttpMain', 'fail', 'https://dvcs.w3.org/hg/xslt30-test?cmd=unbundle']' returned non-zero exit status 255
Push: warning: dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting) warning: dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting) warning: dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting) warning: dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting) warning: dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting) warning: dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting) warning: dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting) abort: authorization failed
    $ hg push --config extensions.smartgit_http=/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp/smartgit_http-0.py --config "smartgit.classpath=/Volumes/SmartGitHg 5.0.7.1/SmartGitHg 5.app/Contents/Resources/Java/log4j.jar:/Volumes/SmartGitHg 5.0.7.1/SmartGitHg 5.app/Contents/Resources/Java/smartgit.jar:/Volumes/SmartGitHg 5.0.7.1/SmartGitHg 5.app/Contents/Resources/Java/trilead.jar" --config smartgit.id=882717487546533434 --config "smartgit.java=/Volumes/SmartGitHg 5.0.7.1/SmartGitHg 5.app/Contents/Resources/Plugins/JRE/Contents/Home/jre/bin/java" --config smartgit.mainClass=com.syntevo.hgapp.file.state.transport.ShHttpMain --config smartgit.port=4333 --config smartgit.tempDir=/var/folders/zf/wthbvqt14q53jh5n3clx1yqw0000gn/T/smartgit550802704160068758tmp --config ui.ssh=smartssh.sh --config extensions.color=! --rev 3fd788a6f541d7514e73920288528456b317a5ab default
    dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting)
    pushing to https://dvcs.w3.org/hg/xslt30-test
    searching for changes
    dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting)
    7 changesets found
    dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting)
    dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting)
    dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting)
    dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting)
    dvcs.w3.org certificate with fingerprint 97:4c:0e:c5:2e:95:74:5e:c7:fa:ed:07:3f:97:ab:ea:80:7a:be:7c not verified (check hostfingerprints or web.cacerts config setting)
    abort: authorization failed

1 个答案:

答案 0 :(得分:1)

解决了它。

用户主目录中有一个名为.hgrc的配置文件。这包含用于访问远程存储库的密码(明确!)。您可以编辑该文件以使用新密码,一切都可以再次运行。