test: test that backslash is preserved by the url class
authorMads Kiilerich <mads@kiilerich.com>
Sun, 01 May 2011 15:49:13 +0200
changeset 14147 617483af1cc0
parent 14146 1618c4f6f15b
child 14148 cc9366a3751b
test: test that backslash is preserved by the url class
mercurial/util.py
--- a/mercurial/util.py	Sun May 01 15:49:13 2011 +0200
+++ b/mercurial/util.py	Sun May 01 15:49:13 2011 +0200
@@ -1473,7 +1473,7 @@
         return '<url %s>' % ', '.join(attrs)
 
     def __str__(self):
-        """Join the URL's components back into a URL string.
+        r"""Join the URL's components back into a URL string.
 
         Examples:
 
@@ -1493,6 +1493,8 @@
         'bundle:../foo'
         >>> str(url('path'))
         'path'
+        >>> print url(r'bundle:foo\bar')
+        bundle:foo\bar
         """
         if self._localpath:
             s = self.path