Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/commands.py @ 1207:a7b8812973d9
Rewrite copytree as copyfiles
This inverts the logic of copytree to allow copying single files at
the top level.
author | mpm@selenic.com |
---|---|
date | Wed, 07 Sep 2005 19:21:38 -0700 |
parents | 6512d352d6c1 |
children | 4644df4944ff |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -607,7 +607,7 @@ def clone(ui, source, dest=None, **opts) # we use a lock here because because we're not nicely ordered l = lock.lock(os.path.join(source, ".hg", "lock")) - util.copytree(os.path.join(source, ".hg"), os.path.join(dest, ".hg"), + util.copyfiles(os.path.join(source, ".hg"), os.path.join(dest, ".hg"), copyfile) for fn in "dirstate", "lock", "hgrc", "localtags":