trunk/reviewboard/scmtools/hg.py (Diff revision 1)
What if the username and/or password are blank? Maybe we should only do this if one or both are set.
Patch: Allow Mercurial (hg) scmtools back end to utilize repository credentials when accessing HTTP/HTTPS paths
Review Request #448 — Created July 10, 2008 and submitted
|Review Board SVN (deprecated)|
A relatively simple change that seems to work ... that said, I don't really know Python at all, so it's rather likely that there's something "not quite right" here.
Tested on Debian and Windows, Python 2.5.2. It also seems to work alright with unauthenticated remote servers, though that has only been tested lightly.
In that case, this looks good. Committed as r1401. Thanks!