# HG changeset patch # User Patrick Mezard # Date 2007-10-05 21:01:38 # Node ID 786c1206a0295f4783e2ec096e17e6e96f54120b # Parent 36c46e20976a71708529102a7835cf7ba335f504 Test *_ISLINK merge environment vars diff --git a/tests/test-merge-symlinks b/tests/test-merge-symlinks new file mode 100755 --- /dev/null +++ b/tests/test-merge-symlinks @@ -0,0 +1,28 @@ +#!/bin/sh + +"$TESTDIR/hghave" symlink || exit 80 + +cat > echo.py < a +hg ci -qAm t0 +echo l > l +hg ci -qAm t1 +hg up -C 0 +ln -s a l +hg ci -qAm t2 + +# Merge them and display *_ISLINK vars +echo % merge heads +HGMERGE=../echo.py hg merge diff --git a/tests/test-merge-symlinks.out b/tests/test-merge-symlinks.out new file mode 100644 --- /dev/null +++ b/tests/test-merge-symlinks.out @@ -0,0 +1,9 @@ +% create heads +0 files updated, 0 files merged, 1 files removed, 0 files unresolved +% merge heads +HG_MY_ISLINK 1 +HG_OTHER_ISLINK 0 +HG_BASE_ISLINK 0 +merging l +0 files updated, 1 files merged, 0 files removed, 0 files unresolved +(branch merge, don't forget to commit)