diff -r dcfa526b180b -r 823a7d79ef82 tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t Tue Oct 16 16:56:14 2012 +0200
+++ b/tests/test-hgweb-commands.t Mon Oct 15 09:43:34 2012 -0700
@@ -27,7 +27,10 @@
$ hg branch unstable
marked working directory as branch unstable
(branches are permanent and global, did you want a bookmark?)
- $ hg ci -Ambranch
+ >>> open('msg', 'wb').write('branch commit with null character: \0\n')
+ $ hg ci -l msg
+ $ rm msg
+
$ echo [graph] >> .hg/hgrc
$ echo default.width = 3 >> .hg/hgrc
$ echo stable.width = 3 >> .hg/hgrc
@@ -35,7 +38,7 @@
$ hg serve --config server.uncompressed=False -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
$ cat hg.pid >> $DAEMON_PIDS
$ hg log -G --template '{rev}:{node|short} {desc}\n'
- @ 3:ba87b23d29ca branch
+ @ 3:cad8025a2e87 branch commit with null character: \x00 (esc)
|
o 2:1d22e65f027e branch
|
@@ -59,9 +62,9 @@
1970-01-01T00:00:00+00:00
- branch
- http://*:$HGPORT/#changeset-ba87b23d29ca67a305625d81a20ac279c1e3f444 (glob)
- (glob)
+ branch commit with null character:
+ http://*:$HGPORT/#changeset-cad8025a2e87f88c06259790adfa15acb4080123 (glob)
+ (glob)
test
test
@@ -70,7 +73,7 @@
1970-01-01T00:00:00+00:00
-
branch
+
branch commit with null character:
@@ -137,9 +140,9 @@
1970-01-01T00:00:00+00:00
- branch
- http://*:$HGPORT/#changeset-ba87b23d29ca67a305625d81a20ac279c1e3f444 (glob)
- (glob)
+ branch commit with null character:
+ http://*:$HGPORT/#changeset-cad8025a2e87f88c06259790adfa15acb4080123 (glob)
+ (glob)
test
test
@@ -148,7 +151,7 @@
1970-01-01T00:00:00+00:00
-
branch
+
branch commit with null character:
@@ -257,14 +260,14 @@
@@ -300,7 +303,7 @@
Thu, 01 Jan 1970 00:00:00 +0000 |
test |
- branchunstable tip something |
+ branch commit with null character: unstable tip something |
Thu, 01 Jan 1970 00:00:00 +0000 |
@@ -701,19 +704,19 @@
$ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'raw-tags'
200 Script output follows
- tip ba87b23d29ca67a305625d81a20ac279c1e3f444
+ tip cad8025a2e87f88c06259790adfa15acb4080123
1.0 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
$ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'raw-branches'
200 Script output follows
- unstable ba87b23d29ca67a305625d81a20ac279c1e3f444 open
+ unstable cad8025a2e87f88c06259790adfa15acb4080123 open
stable 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe inactive
default a4f92ed23982be056b9852de5dfe873eaac7f0de inactive
$ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'raw-bookmarks'
200 Script output follows
anotherthing 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
- something ba87b23d29ca67a305625d81a20ac279c1e3f444
+ something cad8025a2e87f88c06259790adfa15acb4080123
$ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'summary/?style=gitweb'
200 Script output follows
@@ -753,7 +756,7 @@
tags |
bookmarks |
branches |
- files |
+ files |
help
@@ -772,14 +775,14 @@
Thu, 01 Jan 1970 00:00:00 +0000 |
test |
-
- branch
+
+ branch commit with null character:
unstable tip something
|
- changeset |
- files
+ changeset |
+ files
|
@@ -856,11 +859,11 @@
Thu, 01 Jan 1970 00:00:00 +0000 |
- something |
+ something |
- changeset |
- changelog |
- files
+ changeset |
+ changelog |
+ files
|
... |
@@ -871,12 +874,12 @@
Thu, 01 Jan 1970 00:00:00 +0000 |
- ba87b23d29ca |
+ cad8025a2e87 |
unstable |
- changeset |
- changelog |
- files
+ changeset |
+ changelog |
+ files
|
@@ -955,7 +958,7 @@
tags |
bookmarks |
branches |
- files |
+ files |
help
less
@@ -976,7 +979,7 @@