Show More
@@ -97,6 +97,9 b" configitem('convert', 'ignoreancestorche" | |||||
97 | configitem('convert', 'localtimezone', |
|
97 | configitem('convert', 'localtimezone', | |
98 | default=False, |
|
98 | default=False, | |
99 | ) |
|
99 | ) | |
|
100 | configitem('convert', 'p4.encoding', | |||
|
101 | default=lambda: convcmd.orig_encoding, | |||
|
102 | ) | |||
100 | configitem('convert', 'p4.startrev', |
|
103 | configitem('convert', 'p4.startrev', | |
101 | default=0, |
|
104 | default=0, | |
102 | ) |
|
105 | ) |
@@ -44,9 +44,6 b' def decodefilename(filename):' | |||||
44 |
|
44 | |||
45 | class p4_source(common.converter_source): |
|
45 | class p4_source(common.converter_source): | |
46 | def __init__(self, ui, path, revs=None): |
|
46 | def __init__(self, ui, path, revs=None): | |
47 | # avoid import cycle |
|
|||
48 | from . import convcmd |
|
|||
49 |
|
||||
50 | super(p4_source, self).__init__(ui, path, revs=revs) |
|
47 | super(p4_source, self).__init__(ui, path, revs=revs) | |
51 |
|
48 | |||
52 | if "/" in path and not path.startswith('//'): |
|
49 | if "/" in path and not path.startswith('//'): | |
@@ -56,8 +53,7 b' class p4_source(common.converter_source)' | |||||
56 | common.checktool('p4', abort=False) |
|
53 | common.checktool('p4', abort=False) | |
57 |
|
54 | |||
58 | self.revmap = {} |
|
55 | self.revmap = {} | |
59 |
self.encoding = self.ui.config('convert', 'p4.encoding' |
|
56 | self.encoding = self.ui.config('convert', 'p4.encoding') | |
60 | default=convcmd.orig_encoding) |
|
|||
61 | self.re_type = re.compile( |
|
57 | self.re_type = re.compile( | |
62 | "([a-z]+)?(text|binary|symlink|apple|resource|unicode|utf\d+)" |
|
58 | "([a-z]+)?(text|binary|symlink|apple|resource|unicode|utf\d+)" | |
63 | "(\+\w+)?$") |
|
59 | "(\+\w+)?$") |
General Comments 0
You need to be logged in to leave comments.
Login now