[PATCH] test-hybridencode: add a case for direncode

Adrian Buehlmann adrian at cadifra.com
Sun Sep 16 15:58:53 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1347828204 -7200
# Node ID 768c5677e80f7cb02dabc910436d1a0e1398ea81
# Parent  2ee7281e5aaa763442dfb017d096ba6b01f373e0
test-hybridencode: add a case for direncode

diff --git a/tests/test-hybridencode.py b/tests/test-hybridencode.py
--- a/tests/test-hybridencode.py
+++ b/tests/test-hybridencode.py
@@ -41,7 +41,7 @@
            ', pipe |, question-mark ?, asterisk *')
 
 print "encoding directories ending in .hg, .i or .d with '.hg' suffix"
-show('data/x.hg/x.i/x.d/foo')
+show('data/x.h.i/x.hg/x.i/x.d/foo')
 show('data/a.hg/a.i/a.d/foo')
 show('data/au.hg/au.i/au.d/foo')
 show('data/aux.hg/aux.i/aux.d/foo')
diff --git a/tests/test-hybridencode.py.out b/tests/test-hybridencode.py.out
--- a/tests/test-hybridencode.py.out
+++ b/tests/test-hybridencode.py.out
@@ -35,8 +35,8 @@
 B = 'data/less ~3c, greater ~3e, colon ~3a, double-quote ~22, backslash ~5c, pipe ~7c, question-mark ~3f, asterisk ~2a'
 
 encoding directories ending in .hg, .i or .d with '.hg' suffix
-A = 'data/x.hg/x.i/x.d/foo'
-B = 'data/x.hg.hg/x.i.hg/x.d.hg/foo'
+A = 'data/x.h.i/x.hg/x.i/x.d/foo'
+B = 'data/x.h.i.hg/x.hg.hg/x.i.hg/x.d.hg/foo'
 
 A = 'data/a.hg/a.i/a.d/foo'
 B = 'data/a.hg.hg/a.i.hg/a.d.hg/foo'


More information about the Mercurial-devel mailing list