tests/test-addremove
author Nils Decker <mercurial@ndecker.de>
Sun, 09 Jul 2006 21:41:00 -0700
changeset 2585 5ec2dded1bda
parent 1933 7544700fd931
child 2958 ff3ea21a981a
permissions -rwxr-xr-x
darcs2hg.py: use darcs patch hash as patch identifier The use of the patch name is dangerous when duplicate names exist. In case of a duplicate name the second patch and all its dependancies are merged into a single mercurial patch. The patch identifier (hash) is always unique.

#!/bin/sh

hg init rep
cd rep
mkdir dir
touch foo dir/bar
hg -v addremove
hg -v commit -m "add 1" -d "1000000 0"
cd dir/
touch ../foo_2 bar_2
hg -v addremove
hg -v commit -m "add 2" -d "1000000 0"