equal
deleted
inserted
replaced
12 hg, |
12 hg, |
13 localrepo, |
13 localrepo, |
14 pycompat, |
14 pycompat, |
15 ui as uimod, |
15 ui as uimod, |
16 util, |
16 util, |
|
17 ) |
|
18 |
|
19 from mercurial.utils import ( |
|
20 procutil, |
17 ) |
21 ) |
18 |
22 |
19 # create some special property cache that trace they call |
23 # create some special property cache that trace they call |
20 |
24 |
21 calllog = [] |
25 calllog = [] |
44 |
48 |
45 |
49 |
46 # Create an empty repo and instantiate it. It is important to run |
50 # Create an empty repo and instantiate it. It is important to run |
47 # these tests on the real object to detect regression. |
51 # these tests on the real object to detect regression. |
48 repopath = pycompat.fsencode(os.path.join(os.environ['TESTTMP'], 'repo')) |
52 repopath = pycompat.fsencode(os.path.join(os.environ['TESTTMP'], 'repo')) |
49 assert subprocess.call(['hg', 'init', repopath]) == 0 |
53 assert subprocess.call(pycompat.rapply(procutil.tonativestr, |
|
54 [b'hg', b'init', repopath])) == 0 |
|
55 |
50 ui = uimod.ui.load() |
56 ui = uimod.ui.load() |
51 repo = hg.repository(ui, path=repopath).unfiltered() |
57 repo = hg.repository(ui, path=repopath).unfiltered() |
52 |
58 |
53 |
59 |
54 print('') |
60 print('') |