tests/test-basic.out
author Muli Ben-Yehuda <mulix@mulix.org>
Thu, 21 Jul 2005 18:18:43 -0500
changeset 751 0b245edec124
parent 749 7e4843b7efd2
child 761 0fb498458905
permissions -rw-r--r--
When pulling from a non hg repository URL (e.g. http://www.kernel.org/hg) you geta pretty obscure error (zlib: uknown compression type). The attached patch modifies hgweb.py and hg.py to supply and check a 'Content-type: application/hg-0.1' HTTP header for the branches, between and changegroup commands, so that we know it's a proper hg repo before snarfing the input. Comments appreciated!

+ mkdir t
+ cd t
+ hg init
+ echo a
+ hg add a
+ hg commit -t test -d '0 0'
+ hg history
changeset:   0:acb14030fe0a21b60322c440ad2d20cf7685a376
tag:         tip
user:        test
date:        Thu Jan  1 00:00:00 1970
summary:     test

+ hg manifest
b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a
+ hg cat a
a
+ hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
1 files, 1 changesets, 1 total revisions