3

2
$ hg push https://foo.kilnhg.com/Repo/Repositories/Group/bar
http authorization required
realm: kiln
user: 

Is it possible (and/or allowed by the Kiln TOS) to configure my Mercurial client to save my Kiln authentication details?

I'm using Mercurial 1.6.3 as packaged by Ubuntu 10.10.

flag
I know it's answered [here](kiln.stackexchange.com/questions/605/…), but duplicates help discoverability and I had a tough time finding that question. – badp Nov 16 2010 at 9:52

3 Answers

5

The Kiln Client itself is currently Windows-only, but the extensions are cross-platform, including KilnAuth. To get them, go to Resources/Kiln Client and Tools:

alt text

When you get to that page, look at the second section, labeled "Mercurial Extensions". Click the download link, and extract the zip somewhere. (I keep all of my Mercurial extensions in ~/hgext.) Then, enable KilnAuth by adding the following to your ~/.hgrc (~\Mercurial.ini on windows) file:

[extensions]
kilnauth=/path/to/kilnauth.py

Once you have that set up, you can remove the password section under [auth]. Mercurial will ask you for your password once, and then the tokens that Kiln uses will be saved and you shouldn't have to type it again.

Thanks to Anton for the screenshot.

link|flag
0

This answer answered my question, but the gist of it is you need to add the following to your hg configuration file.

[auth]
kiln.prefix = https://yoursite.kilnhg.com
kiln.username = Your name or email address in FogBugz/Kiln
kiln.password = your FogBugz/Kiln password

Kiln's own tools would allow to avoid storing my password as plain text, but it seems they are Windows only currently.

link|flag
KilnAuth isn't Windows-specific extension it works on Linux and (apperantly) Mac as well. – Anton Moiseev Nov 16 2010 at 12:23
Since they are Mercurial extensions, I would expect them to work on all platforms where Mercurial itself works, but I have only conjecture to back this up :-) – cdeszaq Nov 16 2010 at 15:46
0

than you very much

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.