--- a/mercurial/url.py Wed Mar 30 19:50:56 2011 -0700
+++ b/mercurial/url.py Wed Mar 30 20:00:23 2011 -0700
@@ -156,7 +156,7 @@
>>> str(url('http://localhost:80/'))
'http://localhost:80/'
>>> str(url('http://localhost:80'))
- 'http://localhost:80'
+ 'http://localhost:80/'
>>> str(url('bundle:foo'))
'bundle:foo'
>>> str(url('path'))
@@ -185,8 +185,7 @@
s += self.host
if self.port:
s += ':' + urllib.quote(self.port)
- if ((self.host and self.path is not None) or
- (self.host and self.query or self.fragment)):
+ if self.host:
s += '/'
if self.path:
s += urllib.quote(self.path, safe=self._safepchars)