=== modified file 'mapping.py'
--- mapping.py 2013-09-02 00:54:58 +0000
+++ mapping.py 2016-06-13 04:07:10 +0000
@@ -333,7 +333,11 @@
if commit is None:
raise AssertionError("Commit object can't be None")
if commit.extra:
- raise UnknownCommitExtra(commit, [item[0] for item in commit.extra])
+ for (extra_key, extra_value) in commit.extra:
+ if extra_key == "gpgsig":
+ pass
+ sys.stderr.write("WARNING: GPGSIG TAGS ARE NOT SUPPOTED AND MAY CAUSE ISSUES!!!!!!!\n")
+ else:
+ raise UnknownCommitExtra(commit, [item[0] for item in commit.extra])
rev = ForeignRevision(commit.id, self, self.revision_id_foreign_to_bzr(commit.id)) rev.git_metadata = None
But there was no output on the terminal, what am I doing wrong?
I tried:
=== modified file 'mapping.py' "Commit object can't be None") tra(commit, [item[0] for item in commit.extra]) write(" WARNING: GPGSIG TAGS ARE NOT SUPPOTED AND MAY CAUSE ISSUES!!!!!!!\n") tra(commit, [item[0] for item in commit.extra]) (commit. id, self,
self. revision_ id_foreign_ to_bzr( commit. id))
rev.git_ metadata = None
--- mapping.py 2013-09-02 00:54:58 +0000
+++ mapping.py 2016-06-13 04:07:10 +0000
@@ -333,7 +333,11 @@
if commit is None:
raise AssertionError(
if commit.extra:
- raise UnknownCommitEx
+ for (extra_key, extra_value) in commit.extra:
+ if extra_key == "gpgsig":
+ pass
+ sys.stderr.
+ else:
+ raise UnknownCommitEx
rev = ForeignRevision
But there was no output on the terminal, what am I doing wrong?