Mercurial > hg > gitserve
changeset 781:26f3d353851f
Fix copy in subdirectories
Spotted by Chad Netzer
author | mpm@selenic.com |
---|---|
date | Wed, 27 Jul 2005 10:05:12 -0800 |
parents | 5cb8a3a023b2 |
children | cdb9e95b2fab |
files | mercurial/hg.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Wed Jul 27 09:07:28 2005 -0800 +++ b/mercurial/hg.py Wed Jul 27 10:05:12 2005 -0800 @@ -959,9 +959,9 @@ def copy(self, source, dest): p = self.wjoin(dest) - if not os.path.exists(dest): + if not os.path.exists(p): self.ui.warn("%s does not exist!\n" % dest) - elif not os.path.isfile(dest): + elif not os.path.isfile(p): self.ui.warn("copy failed: %s is not a file\n" % dest) else: if self.dirstate.state(dest) == '?':