##// END OF EJS Templates
canonpath: fix infinite recursion
Matt Mackall -
r25022:10bbdcd8 default
parent child Browse files
Show More
@@ -156,8 +156,10 b' def canonpath(root, cwd, myname, auditor'
156 # instead of cwd. Detect that case, and provide a hint to the user.
156 # instead of cwd. Detect that case, and provide a hint to the user.
157 hint = None
157 hint = None
158 try:
158 try:
159 canonpath(root, root, myname, auditor)
159 if cwd != root:
160 hint = _("consider using '--cwd %s'") % os.path.relpath(root, cwd)
160 canonpath(root, root, myname, auditor)
161 hint = (_("consider using '--cwd %s'")
162 % os.path.relpath(root, cwd))
161 except util.Abort:
163 except util.Abort:
162 pass
164 pass
163
165
General Comments 0
You need to be logged in to leave comments. Login now