# HG changeset patch # User Adrian Buehlmann # Date 2012-09-15 19:41:45 # 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 @@ def _auxencode(path, dotencode): >>> _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)