diff hggit/git_handler.py @ 1108:aae2d15de6af

git_handler: store gpgsig header to maintain commit coherence
author Tony Tung <ttung@chanzuckerberg.com <mailto:ttung@chanzuckerberg.com>>
date Tue, 06 Feb 2018 17:04:24 -0800
parents e326b349eba6
children 21264429a8d4
line wrap: on
line diff
--- a/hggit/git_handler.py	Tue Feb 20 16:21:38 2018 -0800
+++ b/hggit/git_handler.py	Tue Feb 06 17:04:24 2018 -0800
@@ -596,6 +596,8 @@
 
         if 'encoding' in extra:
             commit.encoding = extra['encoding']
+        if 'gpgsig' in extra:
+            commit.gpgsig = extra['gpgsig']
 
         for obj, nodeid in exporter.update_changeset(ctx):
             if obj.id not in self.git.object_store:
@@ -1028,6 +1030,8 @@
 
         if commit.encoding:
             extra['encoding'] = commit.encoding
+        if commit.gpgsig:
+            extra['gpgsig'] = commit.gpgsig
 
         if octopus:
             extra['hg-git'] = 'octopus-done'