changeset 868:875112f4bf0d

git_handler: stop exporting commits before performing a fetch While this has been done since the beginning of time, there's no apparent justification for it. If an imported commit works out to the same hash as an existing one, it simply won't be added to the revlog. The tests all continue to pass. There's already test coverage for reimporting commits in test-pull-after-strip.t. Also, gimport has worked this way all this while.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 04 Mar 2015 23:52:11 -0800
parents 82467d4c4db8
children 6547d63aee4e
files hggit/git_handler.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py	Thu Mar 05 13:08:35 2015 -0800
+++ b/hggit/git_handler.py	Wed Mar 04 23:52:11 2015 -0800
@@ -227,7 +227,6 @@
         self.save_map()
 
     def fetch(self, remote, heads):
-        self.export_commits()
         refs = self.fetch_pack(remote, heads)
         remote_name = self.remote_name(remote)