git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc

From
Delcypher <delcypher@gmail.com>
Date
Apr 20, 2014, 20:36 UTC
Message-ID
<CANNJ_zi=qrhmWjd0_QR5-LLjuf2yM8g88xhiwmwdqansvaYy3A@mail.gmail.com>
In-Reply-To
<535425d891e41_6b186d130cc5@nysa.notmuch>
> Same as me. And which version of git-remote-hg are you using?
I'm using the version that ships with git 1.9.2
I've taken a look and it seems I made a mistake, sorry. It seems that

[ui] quiet = True

is being respected when placed in ``.git/hg/origin/clone/.hg/hgrc``
with the un patched version of git-remote-hg.

But it is still the case that authentication details are being ignored when present in ``.git/hg/origin/clone/.hg/hgrc``

i.e. something like the following is ignored.

[auth] cc.prefix = hg.codeplex.com cc.username = USERNAME # Eurgh fixme this shouldn't live here. cc.password = PWD cc.schemes = https

and pushing fails. An easy way of duplicating this is forking a project on codeplex (e.g. [1]), cloning that respository, making a trivial commit and then trying to push that commit to your fork.

When I try this pushing fails because the authentication details are being ignored in ``.git/hg/origin/clone/.hg/hgrc``. Applying my patch (or your improved version using repo.ui instead of repo._unfilteredrepo.ui) fixes this for me.

[1] https://boogie.codeplex.com/SourceControl/latest
Previous: Felipe ContrerasNext: Felipe Contreras
Message 8 of 10 in “git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrc”
  1. git-remote-hg : Enable use of, $GIT_DIR/hg/origin/clone/.hg/hgrcDaniel Liew, Feb 21, 2014
  2. DelcypherMar 24, 2014
  3. Felipe ContrerasApr 12, 2014
  4. DelcypherApr 15, 2014
  5. Felipe ContrerasApr 20, 2014
  6. DelcypherApr 20, 2014
  7. Felipe ContrerasApr 20, 2014
  8. DelcypherApr 20, 2014
  9. Felipe ContrerasApr 20, 2014
  10. DelcypherApr 20, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.