Comments (5)
It is supported, I just tried and it works out-of-the-box.
You can also try with something like this in your .hgrc:
[auth]
bb.prefix = https://bitbucket.org/foo/
bb.username = foo
bb.password = foo_passwd
from git.
Are we both talking about https://pypi.python.org/pypi/mercurial_keyring (support for KWallet, Gnome Keyring, OSX and Windows keyrings)? Doesn't look like your code is doing a extensions.loadall(myui)
so no extra extensions get loaded by default?
Adding
try:
extensions.load(myui, 'mercurial_keyring', None)
except ImportError:
pass
Gets me to the point of mercurial.error.Abort: mercurial_keyring: http authorization required but program used in non-interactive mode
Which is the point where it works if I go and checkout that repo somewhere else using raw hg. Works perfectly first time if we turn interactive mode back on - not sure if this may cause other problems though.
from git.
All extensions get eventually loaded. You first push once with mercurial, and then then the rest of the time you can push in git. I tested it, it works fine.
If there's a good reason we could turn on interactivity, or use git's keyring support. But I think for now the support is good enough.
from git.
I will accept once you have a repository it works, I was testing by trying to create a fresh repository. It seems like it doesn't get enabled before we get the point where the clone gets performed? Can you provide an example of creating a fresh repository from a https source with authentication?
ie:
kbrownle@kbrownle-u-kubuntu:~/test $ git clone hg::https://example.com/testengine
Cloning into 'testengine'...
ERROR: Repository error: http authorization required
kbrownle@kbrownle-u-kubuntu:~/test $ git init testengine
Initialised empty Git repository in /home/kbrownle/test/testengine/.git/
kbrownle@kbrownle-u-kubuntu:~/test $ cd testengine/
kbrownle@kbrownle-u-kubuntu:~/test/testengine $ () git remote add origin hg::https://example.com/testengine
kbrownle@kbrownle-u-kubuntu:~/test/testengine $ () git pull
ERROR: Repository error: http authorization required
kbrownle@kbrownle-u-kubuntu:~/test/testengine $ ()
from git.
I tried to write up the steps and I found exactly what you mean. So I pushed this fix 9a40fe2. Should work now.
from git.
Related Issues (20)
- Something is wrong with git-stage docs HOT 2
- Crash during push to Hg repo HOT 2
- planet bzr repos cannot be cloned HOT 6
- push failed when git branch is different than bzr branch name HOT 2
- Trying to Parse email as int. HOT 1
- Push to new launchpad branch using git-remote-bzr HOT 4
- Fatal error thrown by felipec-git on fast-import of Hg assets HOT 13
- bzrlib.errors.NoSuchFile error while cloning openobject-addons on Launchpad HOT 1
- Cannot push when using https authentication with git-remote-hg HOT 5
- git-remote-hg mysteriously fails HOT 2
- Cloning hg repo from Octave project crashes fast-import HOT 5
- rebase or merge latest git release HOT 2
- Git commits show up in the "draft" phase in BitBucket HOT 2
- Closed branches can cause synchronization issues after gc
- Link to git-remote-hg.py in the wiki is wrong HOT 2
- Worked for a while, now fetch fails with "mark not declared"
- Sorry, flubbed an enter key press... please delete.
- git-remote-hg doesn't fetch HOT 2
- Bookmarks on named branches HOT 1
- uses obsolete python2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git.