Show More
@@ -959,9 +959,9 b' class localrepository:' | |||
|
959 | 959 | |
|
960 | 960 | def copy(self, source, dest): |
|
961 | 961 | p = self.wjoin(dest) |
|
962 |
if not os.path.exists( |
|
|
962 | if not os.path.exists(p): | |
|
963 | 963 | self.ui.warn("%s does not exist!\n" % dest) |
|
964 |
elif not os.path.isfile( |
|
|
964 | elif not os.path.isfile(p): | |
|
965 | 965 | self.ui.warn("copy failed: %s is not a file\n" % dest) |
|
966 | 966 | else: |
|
967 | 967 | if self.dirstate.state(dest) == '?': |
General Comments 0
You need to be logged in to leave comments.
Login now