Mercurial > hg
view tests/test-username-newline @ 11035:e4f911ce21de stable
schemes: fix // breakage with Python 2.6.5 (issue2111)
Recent Pythons (e.g. 2.6.5 and 3.1) introduce a change that causes
urlparse.urlunparse(urlparse.urlparse('x://')) to return 'x:' instead of 'x://'i and
urlparse.urlunparse(urlparse.urlparse('x:///y')) to return 'x:/y' instead of 'x:///y'.
Fix url.hidepassword() and url.removeauth() to handle these cases.
author | Michael Glassford <glassfordmjg@gmail.com> |
---|---|
date | Thu, 08 Apr 2010 11:00:46 -0400 |
parents | 9d023ef7b467 |
children |
line wrap: on
line source
#!/bin/sh # hg init foo cd foo touch a unset HGUSER echo "[ui]" >> .hg/hgrc echo "username= foo" >> .hg/hgrc echo " bar1" >> .hg/hgrc hg ci -Am m rm .hg/hgrc HGUSER=`(echo foo; echo bar2)` hg ci -Am m hg ci -Am m -u "`(echo foo; echo bar3)`" true