Mercurial > hg
comparison tests/test-hgwebdir-paths.py @ 28932:4eac86331acb
tests: make test-hgwebdir-paths use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 16 Apr 2016 03:35:27 +0530 |
parents | c519cd8f0169 |
children | d83ca854fa21 |
comparison
equal
deleted
inserted
replaced
28931:ba0e4789bd2e | 28932:4eac86331acb |
---|---|
1 from __future__ import absolute_import | |
2 | |
1 import os | 3 import os |
2 from mercurial import hg, ui | 4 from mercurial import ( |
3 from mercurial.hgweb.hgwebdir_mod import hgwebdir | 5 hg, |
6 ui as uimod, | |
7 ) | |
8 from mercurial.hgweb import ( | |
9 hgwebdir_mod, | |
10 ) | |
11 hgwebdir = hgwebdir_mod.hgwebdir | |
4 | 12 |
5 os.mkdir('webdir') | 13 os.mkdir('webdir') |
6 os.chdir('webdir') | 14 os.chdir('webdir') |
7 | 15 |
8 webdir = os.path.realpath('.') | 16 webdir = os.path.realpath('.') |
9 | 17 |
10 u = ui.ui() | 18 u = uimod.ui() |
11 hg.repository(u, 'a', create=1) | 19 hg.repository(u, 'a', create=1) |
12 hg.repository(u, 'b', create=1) | 20 hg.repository(u, 'b', create=1) |
13 os.chdir('b') | 21 os.chdir('b') |
14 hg.repository(u, 'd', create=1) | 22 hg.repository(u, 'd', create=1) |
15 os.chdir('..') | 23 os.chdir('..') |