view tests/test-copy @ 1019:a9cca981c423

Create helper functions for I/O to files in the working directory This simplifies some code and gives us a single place to add I/O filters.
author mpm@selenic.com
date Wed, 24 Aug 2005 00:32:10 -0700
parents 0902ffece4b4
children 9344f5dd4488
line wrap: on
line source

#!/bin/sh

hg init
echo a > a
hg add a
hg commit -m "1" -d "0 0"
hg status
cp a b
hg copy a b
hg status
hg --debug commit -m "2" -d "0 0"
hg history
hg log a
md5sum .hg/data/b.d
hg cat b > bsum
md5sum bsum
hg cat a > asum
md5sum asum
hg verify