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