view tests/test-empty @ 9328:648d6a1a1cf2

patch: create file even if source is not /dev/null as long as the first hunk is -0,0 and the source and destination have the same name. Matt found a patch like this, and /usr/bin/patch accepts it.
author Brendan Cully <brendan@kublai.com>
date Fri, 07 Aug 2009 19:27:54 -0700
parents 7e5f3480c45b
children
line wrap: on
line source

#!/bin/sh

hg init a
cd a
hg log
hg grep wah
hg manifest
hg verify
ls .hg
ls .hg/store

cd ..
hg clone a b
cd b
hg verify
ls .hg
ls .hg/store