Show More
@@ -68,7 +68,7 b' try to clone via stream but missing requ' | |||
|
68 | 68 | $ cat > $TESTTMP/removesupportedformat.py << EOF |
|
69 | 69 | > from mercurial import localrepo |
|
70 | 70 | > def extsetup(ui): |
|
71 | > localrepo.localrepository.supportedformats.remove('generaldelta') | |
|
71 | > localrepo.localrepository.supportedformats.remove(b'generaldelta') | |
|
72 | 72 | > EOF |
|
73 | 73 | |
|
74 | 74 | $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3 |
@@ -181,7 +181,8 b' test http authentication' | |||
|
181 | 181 | > if not auth: |
|
182 | 182 | > raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, 'who', |
|
183 | 183 | > [('WWW-Authenticate', 'Basic Realm="mercurial"')]) |
|
184 |
> if base64.b64decode(auth.split()[1]).split(':', 1) != ['user', |
|
|
184 | > if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user', | |
|
185 | > b'pass']: | |
|
185 | 186 | > raise common.ErrorResponse(common.HTTP_FORBIDDEN, 'no') |
|
186 | 187 | > def extsetup(): |
|
187 | 188 | > common.permhooks.insert(0, perform_authentication) |
General Comments 0
You need to be logged in to leave comments.
Login now