##// END OF EJS Templates
Fix issue995 (copy --after and symlinks pointing to a directory)...
Alexis S. L. Carvalho -
r6258:c24f4b3f default
parent child Browse files
Show More
@@ -470,7 +470,7 b' def copy(ui, repo, pats, opts, rename=Fa'
470 if len(pats) == 1:
470 if len(pats) == 1:
471 raise util.Abort(_('no destination specified'))
471 raise util.Abort(_('no destination specified'))
472 dest = pats.pop()
472 dest = pats.pop()
473 destdirexists = os.path.isdir(dest)
473 destdirexists = os.path.isdir(dest) and not os.path.islink(dest)
474 if not destdirexists:
474 if not destdirexists:
475 if len(pats) > 1 or util.patkind(pats[0], None)[0]:
475 if len(pats) > 1 or util.patkind(pats[0], None)[0]:
476 raise util.Abort(_('with multiple sources, destination must be an '
476 raise util.Abort(_('with multiple sources, destination must be an '
General Comments 0
You need to be logged in to leave comments. Login now