Mercurial > hg
comparison tests/test-symlink-os-yes-fs-no.py @ 37431:5ac84b20f184
tests: use unbundle in test-symlink-os-yes-fs-no.py
The test (which should probably be rewritten as a .t test - the
test was initially authored in 2009 and this may have predated
some test harness features allowing us to implement it as a .t
test) is verifying symlink behavior with regards to working
directory operations. How it pulls bundle data into a repo is
not relevant. So we can switch from pull to unbundle so we can
support environments where bundlerepos don't work.
Differential Revision: https://phab.mercurial-scm.org/D3111
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 04 Apr 2018 17:02:54 -0700 |
parents | d83ca854fa21 |
children | 630429dcc397 |
comparison
equal
deleted
inserted
replaced
37430:b4f5d8c68cfa | 37431:5ac84b20f184 |
---|---|
19 | 19 |
20 u = uimod.ui.load() | 20 u = uimod.ui.load() |
21 # hide outer repo | 21 # hide outer repo |
22 hg.peer(u, {}, '.', create=True) | 22 hg.peer(u, {}, '.', create=True) |
23 | 23 |
24 # clone with symlink support | 24 # unbundle with symlink support |
25 hg.clone(u, {}, BUNDLEPATH, 'test0') | 25 hg.peer(u, {}, 'test0', create=True) |
26 | 26 |
27 repo = hg.repository(u, 'test0') | 27 repo = hg.repository(u, 'test0') |
28 commands.unbundle(u, repo, BUNDLEPATH, update=True) | |
28 | 29 |
29 # wait a bit, or the status call wont update the dirstate | 30 # wait a bit, or the status call wont update the dirstate |
30 time.sleep(1) | 31 time.sleep(1) |
31 commands.status(u, repo) | 32 commands.status(u, repo) |
32 | 33 |
50 # reload repository | 51 # reload repository |
51 u = uimod.ui.load() | 52 u = uimod.ui.load() |
52 repo = hg.repository(u, 'test0') | 53 repo = hg.repository(u, 'test0') |
53 commands.status(u, repo) | 54 commands.status(u, repo) |
54 | 55 |
55 # try cloning a repo which contains symlinks | 56 # try unbundling a repo which contains symlinks |
56 u = uimod.ui.load() | 57 u = uimod.ui.load() |
57 hg.clone(u, {}, BUNDLEPATH, 'test1') | 58 |
59 repo = hg.repository(u, 'test1', create=True) | |
60 commands.unbundle(u, repo, BUNDLEPATH, update=True) |