diff tests/test-init.t @ 12687:34d8247a4595

store: encode first period or space in filenames (issue1713) - Mac OS X has problems with filenames starting with '._' (e.g. '.FOO' -> '._f_o_o' is now encoded as '~2e_f_o_o') - Explorer of Windows Vista and Windows 7 strip leading spaces of path elements of filenames when copying trees Above problems are avoided by encoding the first space (as '~20') or period (as '~2e') of all path elements. This introduces a new entry 'dotencode' in .hg/requires, that is, a new repository filename layout (inside .hg/store). Newly created repositories require 'dotencode' by default. Specifying [format] dotencode = False in a config file will use the old format instead. Prior Mercurial versions will abort with the message abort: requirement 'dotencode' not supported! when trying to access a local repository that requires 'dotencode'. New 'dotencode' repositories can be converted to the previous repository format with hg --config format.dotencode=0 clone --pull repoA repoB
author Adrian Buehlmann <adrian@cadifra.com>
date Sat, 09 Oct 2010 21:54:50 +0200
parents fb24b491e06a
children 1b546140b85e
line wrap: on
line diff
--- a/tests/test-init.t	Tue Sep 14 23:00:39 2010 +0200
+++ b/tests/test-init.t	Sat Oct 09 21:54:50 2010 +0200
@@ -42,6 +42,7 @@
   revlogv1
   store
   fncache
+  dotencode
   $ echo this > local/foo
   $ hg ci --cwd local -A -m "init"
   adding foo
@@ -157,6 +158,7 @@
   revlogv1
   store
   fncache
+  dotencode
 
 prepare test of init of url configured from paths
 
@@ -173,6 +175,7 @@
   revlogv1
   store
   fncache
+  dotencode
 
 verify that clone also expand urls
 
@@ -185,3 +188,4 @@
   revlogv1
   store
   fncache
+  dotencode