test-static-http.t: increase test coverage on filenames
authorAdrian Buehlmann <adrian@cadifra.com>
Sun, 26 Dec 2010 12:08:20 +0100
changeset 13209 501f979d26b6
parent 13208 b6693876c250
child 13210 86a218df3c2b
test-static-http.t: increase test coverage on filenames Tracked files starting with a period in the name begin with '~2e' in the store for the dotencode repository format, which is encoded as '%7E2e' in URLs when accessing the repo over static-http. The spaces in filenames are encoded with %20 in URLs. See also issue 2566.
tests/test-static-http.t
--- a/tests/test-static-http.t	Sun Dec 26 11:59:07 2010 +0100
+++ b/tests/test-static-http.t	Sun Dec 26 12:08:20 2010 +0100
@@ -27,10 +27,13 @@
   $ cd remote
   $ hg init
   $ echo foo > bar
-  $ hg add bar
+  $ echo c2 > '.dotfile with spaces'
+  $ hg add
+  adding .dotfile with spaces
+  adding bar
   $ hg commit -m"test"
   $ hg tip
-  changeset:   0:61c9426e69fe
+  changeset:   0:02770d679fb8
   tag:         tip
   user:        test
   date:        Thu Jan 01 00:00:00 1970 +0000
@@ -42,16 +45,16 @@
   adding changesets
   adding manifests
   adding file changes
-  added 1 changesets with 1 changes to 1 files
+  added 1 changesets with 2 changes to 2 files
   updating to branch default
-  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd local
   $ hg verify
   checking changesets
   checking manifests
   crosschecking files in changesets and manifests
   checking files
-  1 files, 1 changesets, 1 total revisions
+  2 files, 1 changesets, 2 total revisions
   $ cat bar
   foo
   $ cd ../remote
@@ -66,7 +69,7 @@
   $ echo '[hooks]' >> .hg/hgrc
   $ echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
   $ hg pull
-  changegroup hook: HG_NODE=822d6e31f08b9d6e3b898ce5e52efc0a4bf4905a HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/remote 
+  changegroup hook: HG_NODE=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/remote 
   pulling from static-http://localhost:$HGPORT/remote
   searching for changes
   adding changesets
@@ -96,9 +99,9 @@
   adding changesets
   adding manifests
   adding file changes
-  added 1 changesets with 1 changes to 1 files
+  added 1 changesets with 2 changes to 2 files
   updating to branch default
-  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
 test with "/" URI (issue 747)