##// END OF EJS Templates
Fix copy in subdirectories...
mpm@selenic.com -
r781:26f3d353 default
parent child Browse files
Show More
@@ -959,9 +959,9 b' class localrepository:'
959
959
960 def copy(self, source, dest):
960 def copy(self, source, dest):
961 p = self.wjoin(dest)
961 p = self.wjoin(dest)
962 if not os.path.exists(dest):
962 if not os.path.exists(p):
963 self.ui.warn("%s does not exist!\n" % dest)
963 self.ui.warn("%s does not exist!\n" % dest)
964 elif not os.path.isfile(dest):
964 elif not os.path.isfile(p):
965 self.ui.warn("copy failed: %s is not a file\n" % dest)
965 self.ui.warn("copy failed: %s is not a file\n" % dest)
966 else:
966 else:
967 if self.dirstate.state(dest) == '?':
967 if self.dirstate.state(dest) == '?':
General Comments 0
You need to be logged in to leave comments. Login now