Mercurial > hg > mercurial-source
diff mercurial/hg.py @ 17194:32a6a33b9a35
peer: remove cancopy from peer api; use directly on repo instead
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Fri, 13 Jul 2012 21:52:37 +0200 (2012-07-13) |
parents | 1ac628cd7113 |
children | ecde35a1af9e |
line wrap: on
line diff
--- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -302,7 +302,8 @@ dircleanup = DirCleanup(dest) copy = False - if srcpeer.cancopy() and islocal(dest) and not srcrepo.revs("secret()"): + if (srcrepo and srcrepo.cancopy() and islocal(dest) + and not srcrepo.revs("secret()")): copy = not pull and not rev if copy: