equal
deleted
inserted
replaced
224 hint = None |
224 hint = None |
225 try: |
225 try: |
226 if cwd != root: |
226 if cwd != root: |
227 canonpath(root, root, myname, auditor) |
227 canonpath(root, root, myname, auditor) |
228 relpath = util.pathto(root, cwd, '') |
228 relpath = util.pathto(root, cwd, '') |
229 if relpath[-1] == pycompat.ossep: |
229 if relpath.endswith(pycompat.ossep): |
230 relpath = relpath[:-1] |
230 relpath = relpath[:-1] |
231 hint = (_("consider using '--cwd %s'") % relpath) |
231 hint = (_("consider using '--cwd %s'") % relpath) |
232 except error.Abort: |
232 except error.Abort: |
233 pass |
233 pass |
234 |
234 |