# HG changeset patch # User Mads Kiilerich # Date 2011-05-01 13:49:13 # Node ID 617483af1cc0eb79f088295b0ae90949aa5135c6 # Parent 1618c4f6f15b1e4a2bf0d3da9ec85dd5b3188812 test: test that backslash is preserved by the url class diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1473,7 +1473,7 @@ class url(object): return '' % ', '.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 @@ class url(object): 'bundle:../foo' >>> str(url('path')) 'path' + >>> print url(r'bundle:foo\bar') + bundle:foo\bar """ if self._localpath: s = self.path