diff -r 6a16ef0d1c7c -r b6a1f2c46c6c hgext/convert/__init__.py --- a/hgext/convert/__init__.py Sun Jul 01 17:15:54 2007 +0200 +++ b/hgext/convert/__init__.py Sun Jul 01 23:56:11 2007 +0200 @@ -193,6 +193,8 @@ def copy(self, rev): c = self.commitcache[rev] files = self.source.getchanges(rev) + + do_copies = (hasattr(c, 'copies') and hasattr(self.dest, 'copyfile')) for f, v in files: try: @@ -202,6 +204,11 @@ else: e = self.source.getmode(f, v) self.dest.putfile(f, e, data) + if do_copies: + if f in c.copies: + # Merely marks that a copy happened. + self.dest.copyfile(c.copies[f], f) + r = [self.map[v] for v in c.parents] f = [f for f, v in files] @@ -258,6 +265,7 @@ Accepted source formats: - GIT - CVS + - SVN Accepted destination formats: - Mercurial