Show More
1 | NO CONTENT: file renamed from tests/darcs1.hg to tests/bundles/darcs1.hg |
|
NO CONTENT: file renamed from tests/darcs1.hg to tests/bundles/darcs1.hg |
1 | NO CONTENT: file renamed from tests/legacy-encoding.hg to tests/bundles/legacy-encoding.hg |
|
NO CONTENT: file renamed from tests/legacy-encoding.hg to tests/bundles/legacy-encoding.hg |
1 | NO CONTENT: file renamed from tests/tampered.hg to tests/bundles/tampered.hg |
|
NO CONTENT: file renamed from tests/tampered.hg to tests/bundles/tampered.hg |
1 | NO CONTENT: file renamed from tests/test-keyword.hg to tests/bundles/test-keyword.hg |
|
NO CONTENT: file renamed from tests/test-keyword.hg to tests/bundles/test-keyword.hg |
1 | NO CONTENT: file renamed from tests/test-manifest.hg to tests/bundles/test-manifest.hg |
|
NO CONTENT: file renamed from tests/test-manifest.hg to tests/bundles/test-manifest.hg |
1 | NO CONTENT: file renamed from tests/test-merge-symlinks.hg to tests/bundles/test-merge-symlinks.hg |
|
NO CONTENT: file renamed from tests/test-merge-symlinks.hg to tests/bundles/test-merge-symlinks.hg |
1 | NO CONTENT: file renamed from tests/test-no-symlinks.hg to tests/bundles/test-no-symlinks.hg |
|
NO CONTENT: file renamed from tests/test-no-symlinks.hg to tests/bundles/test-no-symlinks.hg |
@@ -33,7 +33,7 b' unbundle tampered bundle' | |||||
33 |
|
33 | |||
34 | $ hg init target |
|
34 | $ hg init target | |
35 | $ cd target |
|
35 | $ cd target | |
36 | $ hg unbundle $TESTDIR/tampered.hg |
|
36 | $ hg unbundle $TESTDIR/bundles/tampered.hg | |
37 | adding changesets |
|
37 | adding changesets | |
38 | adding manifests |
|
38 | adding manifests | |
39 | adding file changes |
|
39 | adding file changes |
@@ -16,7 +16,7 b" skip if we can't import elementtree" | |||||
16 |
|
16 | |||
17 | try converting darcs1 repository |
|
17 | try converting darcs1 repository | |
18 |
|
18 | |||
19 | $ hg clone -q "$TESTDIR/darcs1.hg" darcs |
|
19 | $ hg clone -q "$TESTDIR/bundles/darcs1.hg" darcs | |
20 | $ hg convert -s darcs darcs/darcs1 2>&1 | grep darcs-1.0 |
|
20 | $ hg convert -s darcs darcs/darcs1 2>&1 | grep darcs-1.0 | |
21 | darcs-1.0 repository format is unsupported, please upgrade |
|
21 | darcs-1.0 repository format is unsupported, please upgrade | |
22 |
|
22 |
@@ -5,7 +5,7 b' Test character encoding' | |||||
5 |
|
5 | |||
6 | we need a repo with some legacy latin-1 changesets |
|
6 | we need a repo with some legacy latin-1 changesets | |
7 |
|
7 | |||
8 | $ hg unbundle $TESTDIR/legacy-encoding.hg |
|
8 | $ hg unbundle $TESTDIR/bundles/legacy-encoding.hg | |
9 | adding changesets |
|
9 | adding changesets | |
10 | adding manifests |
|
10 | adding manifests | |
11 | adding file changes |
|
11 | adding file changes |
@@ -78,7 +78,7 b' A bundle to test this was made with:' | |||||
78 | hg ci -m addsym -u mercurial |
|
78 | hg ci -m addsym -u mercurial | |
79 | hg bundle --base null ../test-keyword.hg |
|
79 | hg bundle --base null ../test-keyword.hg | |
80 |
|
80 | |||
81 | $ hg pull -u "$TESTDIR"/test-keyword.hg |
|
81 | $ hg pull -u "$TESTDIR"/bundles/test-keyword.hg | |
82 | pulling from *test-keyword.hg (glob) |
|
82 | pulling from *test-keyword.hg (glob) | |
83 | requesting all changes |
|
83 | requesting all changes | |
84 | adding changesets |
|
84 | adding changesets |
@@ -10,7 +10,7 b' Source bundle was generated with the fol' | |||||
10 | # hg ci -Amb -d'1 0' |
|
10 | # hg ci -Amb -d'1 0' | |
11 |
|
11 | |||
12 | $ hg init |
|
12 | $ hg init | |
13 | $ hg -q pull "$TESTDIR/test-manifest.hg" |
|
13 | $ hg -q pull "$TESTDIR/bundles/test-manifest.hg" | |
14 |
|
14 | |||
15 | The next call is expected to return nothing: |
|
15 | The next call is expected to return nothing: | |
16 |
|
16 |
@@ -30,7 +30,7 b' a file, once as a link. Bundle was gener' | |||||
30 |
|
30 | |||
31 | $ hg init t |
|
31 | $ hg init t | |
32 | $ cd t |
|
32 | $ cd t | |
33 | $ hg -q pull "$TESTDIR/test-merge-symlinks.hg" |
|
33 | $ hg -q pull "$TESTDIR/bundles/test-merge-symlinks.hg" | |
34 | $ hg up -C 3 |
|
34 | $ hg up -C 3 | |
35 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
35 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
36 |
|
36 |
@@ -16,7 +16,7 b' Extract a symlink on a platform not supp' | |||||
16 |
|
16 | |||
17 | $ hg init t |
|
17 | $ hg init t | |
18 | $ cd t |
|
18 | $ cd t | |
19 | $ hg pull -q "$TESTDIR/test-no-symlinks.hg" |
|
19 | $ hg pull -q "$TESTDIR/bundles/test-no-symlinks.hg" | |
20 | $ hg update |
|
20 | $ hg update | |
21 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
21 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
22 | $ cat a.lnk && echo |
|
22 | $ cat a.lnk && echo |
@@ -2,6 +2,7 b' import os, sys, time' | |||||
2 | from mercurial import hg, ui, commands |
|
2 | from mercurial import hg, ui, commands | |
3 |
|
3 | |||
4 | TESTDIR = os.environ["TESTDIR"] |
|
4 | TESTDIR = os.environ["TESTDIR"] | |
|
5 | BUNDLEPATH = os.path.join(TESTDIR, 'bundles', 'test-no-symlinks.hg') | |||
5 |
|
6 | |||
6 | # only makes sense to test on os which supports symlinks |
|
7 | # only makes sense to test on os which supports symlinks | |
7 | if not hasattr(os, "symlink"): |
|
8 | if not hasattr(os, "symlink"): | |
@@ -9,7 +10,7 b' if not hasattr(os, "symlink"):' | |||||
9 |
|
10 | |||
10 | # clone with symlink support |
|
11 | # clone with symlink support | |
11 | u = ui.ui() |
|
12 | u = ui.ui() | |
12 | hg.clone(u, os.path.join(TESTDIR, 'test-no-symlinks.hg'), 'test0') |
|
13 | hg.clone(u, BUNDLEPATH, 'test0') | |
13 |
|
14 | |||
14 | repo = hg.repository(u, 'test0') |
|
15 | repo = hg.repository(u, 'test0') | |
15 |
|
16 | |||
@@ -38,4 +39,4 b' commands.status(u, repo)' | |||||
38 |
|
39 | |||
39 | # try cloning a repo which contains symlinks |
|
40 | # try cloning a repo which contains symlinks | |
40 | u = ui.ui() |
|
41 | u = ui.ui() | |
41 | hg.clone(u, os.path.join(TESTDIR, 'test-no-symlinks.hg'), 'test1') |
|
42 | hg.clone(u, BUNDLEPATH, 'test1') |
General Comments 0
You need to be logged in to leave comments.
Login now