effectflag: handle invalid data
If we get a marker with an invalid input we should not crash the whole process.
--- a/hgext3rd/evolve/obshistory.py Fri May 19 20:49:20 2017 +0200
+++ b/hgext3rd/evolve/obshistory.py Fri May 19 20:50:00 2017 +0200
@@ -340,9 +340,13 @@
label="evolve.verb")
effectflag = metadata.get('ef1')
+ if effectflag is not None:
+ try:
+ effectflag = int(effectflag)
+ except ValueError:
+ effectflag = None
if effectflag:
effect = []
- effectflag = int(effectflag)
if effectflag & DESCCHANGED:
effect.append('description')