Show More
@@ -0,0 +1,28 b'' | |||
|
1 | #!/bin/sh | |
|
2 | ||
|
3 | "$TESTDIR/hghave" symlink || exit 80 | |
|
4 | ||
|
5 | cat > echo.py <<EOF | |
|
6 | #!/usr/bin/env python | |
|
7 | import os | |
|
8 | for k in ('HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'): | |
|
9 | print k, os.environ[k] | |
|
10 | EOF | |
|
11 | chmod +x echo.py | |
|
12 | ||
|
13 | # Create 2 heads containing the same file, once as | |
|
14 | # a file, once as a link. | |
|
15 | echo % create heads | |
|
16 | hg init t | |
|
17 | cd t | |
|
18 | echo a > a | |
|
19 | hg ci -qAm t0 | |
|
20 | echo l > l | |
|
21 | hg ci -qAm t1 | |
|
22 | hg up -C 0 | |
|
23 | ln -s a l | |
|
24 | hg ci -qAm t2 | |
|
25 | ||
|
26 | # Merge them and display *_ISLINK vars | |
|
27 | echo % merge heads | |
|
28 | HGMERGE=../echo.py hg merge |
@@ -0,0 +1,9 b'' | |||
|
1 | % create heads | |
|
2 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
3 | % merge heads | |
|
4 | HG_MY_ISLINK 1 | |
|
5 | HG_OTHER_ISLINK 0 | |
|
6 | HG_BASE_ISLINK 0 | |
|
7 | merging l | |
|
8 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
|
9 | (branch merge, don't forget to commit) |
General Comments 0
You need to be logged in to leave comments.
Login now