Show More
@@ -6,6 +6,8 b' test-amend-subrepo.t' | |||
|
6 | 6 | test-ancestor.py |
|
7 | 7 | test-annotate.py |
|
8 | 8 | test-annotate.t |
|
9 | test-audit-path.t | |
|
10 | test-audit-subrepo.t | |
|
9 | 11 | test-automv.t |
|
10 | 12 | test-backout.t |
|
11 | 13 | test-backwards-remove.t |
@@ -81,7 +81,7 b' class pathauditor(object):' | |||
|
81 | 81 | pos = lparts.index(p) |
|
82 | 82 | base = os.path.join(*parts[:pos]) |
|
83 | 83 | raise error.Abort(_("path '%s' is inside nested repo %r") |
|
84 | % (path, base)) | |
|
84 | % (path, pycompat.bytestr(base))) | |
|
85 | 85 | |
|
86 | 86 | normparts = util.splitpath(normpath) |
|
87 | 87 | assert len(parts) == len(normparts) |
@@ -119,13 +119,14 b' class pathauditor(object):' | |||
|
119 | 119 | raise |
|
120 | 120 | else: |
|
121 | 121 | if stat.S_ISLNK(st.st_mode): |
|
122 |
msg = _('path %r traverses symbolic link %r') |
|
|
122 | msg = (_('path %r traverses symbolic link %r') | |
|
123 | % (pycompat.bytestr(path), pycompat.bytestr(prefix))) | |
|
123 | 124 | raise error.Abort(msg) |
|
124 | 125 | elif (stat.S_ISDIR(st.st_mode) and |
|
125 | 126 | os.path.isdir(os.path.join(curpath, '.hg'))): |
|
126 | 127 | if not self.callback or not self.callback(curpath): |
|
127 | 128 | msg = _("path '%s' is inside nested repo %r") |
|
128 | raise error.Abort(msg % (path, prefix)) | |
|
129 | raise error.Abort(msg % (path, pycompat.bytestr(prefix))) | |
|
129 | 130 | |
|
130 | 131 | def check(self, path): |
|
131 | 132 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now