# HG changeset patch # User Siddharth Agarwal # Date 1392412545 28800 # Node ID cacd98c7382e2feebafef171e5e2c0d81adf9040 # Parent 42ca3ace9a0f0837ddf59c9aa88e7324481ccb5e git_handler: move gparents initialization up to start of import_git_commit gparents will be used to compute .hgsubstate in an upcoming patch. diff --git a/hggit/git_handler.py b/hggit/git_handler.py --- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -675,6 +675,8 @@ (strip_message, hg_renames, hg_branch, extra) = self.extract_hg_metadata(commit.message) + gparents = map(self.map_hg_get, commit.parents) + # get a list of the changed, added, removed files and gitlinks files, gitlinks = self.get_files_changed(commit) @@ -786,7 +788,6 @@ return context.memfilectx(f, data, 'l' in e, 'x' in e, copied_path) - gparents = map(self.map_hg_get, commit.parents) p1, p2 = (nullid, nullid) octopus = False