Mercurial > hgsubversion
diff hg_delta_editor.py @ 73:9c1b53abefcb
fetch_command: support svn copy detection in stupid mode
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 05 Nov 2008 13:37:08 +0100 |
parents | 9ec2a12c12ae |
children | 0d3a2a7cefa3 |
line wrap: on
line diff
--- a/hg_delta_editor.py +++ b/hg_delta_editor.py @@ -499,7 +499,7 @@ class HgChangeReceiver(delta.Editor): self.base_revision = None self.should_edit_most_recent_plaintext = True - def _aresamefiles(self, parentctx, childctx, files): + def aresamefiles(self, parentctx, childctx, files): """Assuming all files exist in childctx and parentctx, return True if none of them was changed in-between. """ @@ -560,7 +560,7 @@ class HgChangeReceiver(delta.Editor): branch) if parentid != revlog.nullid: parentctx = self.repo.changectx(parentid) - if self._aresamefiles(parentctx, ctx, [from_file]): + if self.aresamefiles(parentctx, ctx, [from_file]): self.copies[path] = from_file @stash_exception_on_self @@ -618,7 +618,7 @@ class HgChangeReceiver(delta.Editor): parentid = self.get_parent_revision(self.current_rev.revnum, branch) if parentid != revlog.nullid: parentctx = self.repo.changectx(parentid) - if self._aresamefiles(parentctx, cp_f_ctx, copies.values()): + if self.aresamefiles(parentctx, cp_f_ctx, copies.values()): self.copies.update(copies) @stash_exception_on_self