changeset 17605:e9cc29be3305

store: add multiline doctest case for encodedir() a followup to 64c6a0d4d4bd
author Adrian Buehlmann <adrian@cadifra.com>
date Tue, 18 Sep 2012 07:58:50 +0200
parents bf9894889d82
children 318fb32b980e
files mercurial/store.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/store.py	Mon Sep 17 11:00:38 2012 +0200
+++ b/mercurial/store.py	Tue Sep 18 07:58:50 2012 +0200
@@ -21,6 +21,8 @@
     'data/foo.i.hg/bla.i'
     >>> encodedir('data/foo.i.hg/bla.i')
     'data/foo.i.hg.hg/bla.i'
+    >>> encodedir('data/foo.i\\ndata/foo.i/bla.i\\ndata/foo.i.hg/bla.i\\n')
+    'data/foo.i\\ndata/foo.i.hg/bla.i\\ndata/foo.i.hg.hg/bla.i\\n'
     '''
     return (path
             .replace(".hg/", ".hg.hg/")