Commits

Pierre-Yves David  committed 3853061

[obsolete] convert json unicode into string before creating an obsolete marker

  • Participants
  • Parent commits b922d14

Comments (0)

Files changed (1)

File hgext/obsolete.py

                         pass
 
                 oldmark['date'] = '%i %i' % tuple(oldmark['date'])
+                meta = dict((k.encode('utf-8'), v.encode('utf-8'))
+                             for k, v in oldmark.iteritems())
                 try:
                     store.create(bin(oldobject), [bin(n) for n in oldsubjects],
-                                 0, oldmark)
+                                 0, meta)
                 except ValueError:
                     repo.ui.write_err("invalid marker %s -> %s\n"
                                  % (oldobject, oldsubjects))