[PATCH 01 of 10] store: add 'com0' and 'lpt0' doctest cases for _auxencode()

Adrian Buehlmann adrian at cadifra.com
Sat Sep 15 16:01:42 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1347738105 -7200
# Node ID 88244af1f66e7c41b3e4bc7cd97d3898fe594b85
# Parent  2ee7281e5aaa763442dfb017d096ba6b01f373e0
store: add 'com0' and 'lpt0' doctest cases for _auxencode()

These are already covered by test-hybridencode.py, but they are so noteworthy
that I think they deserve being shown right in that doctest.

diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -132,8 +132,8 @@
 
     >>> _auxencode('.foo/aux.txt/txt.aux/con/prn/nul/foo.', True)
     '~2efoo/au~78.txt/txt.aux/co~6e/pr~6e/nu~6c/foo~2e'
-    >>> _auxencode('.com1com2/lpt9.lpt4.lpt1/conprn/foo.', False)
-    '.com1com2/lp~749.lpt4.lpt1/conprn/foo~2e'
+    >>> _auxencode('.com1com2/lpt9.lpt4.lpt1/conprn/com0/lpt0/foo.', False)
+    '.com1com2/lp~749.lpt4.lpt1/conprn/com0/lpt0/foo~2e'
     >>> _auxencode('foo. ', True)
     'foo.~20'
     >>> _auxencode(' .foo', True)


More information about the Mercurial-devel mailing list