##// END OF EJS Templates
pathutil: use temporary variables instead of complicated wrapping...
Pierre-Yves David -
r27235:054cd38a default
parent child Browse files
Show More
@@ -111,14 +111,13 b' class pathauditor(object):'
111 111 raise
112 112 else:
113 113 if stat.S_ISLNK(st.st_mode):
114 raise error.Abort(
115 _('path %r traverses symbolic link %r')
116 % (path, prefix))
114 msg = _('path %r traverses symbolic link %r') % (path, prefix)
115 raise error.Abort(msg)
117 116 elif (stat.S_ISDIR(st.st_mode) and
118 117 os.path.isdir(os.path.join(curpath, '.hg'))):
119 118 if not self.callback or not self.callback(curpath):
120 raise error.Abort(_("path '%s' is inside nested "
121 "repo %r") % (path, prefix))
119 msg = _("path '%s' is inside nested repo %r")
120 raise error.Abort(msg % (path, prefix))
122 121
123 122 def check(self, path):
124 123 try:
General Comments 0
You need to be logged in to leave comments. Login now