Bug 1284364 - Try to import PushStore from cinnabar.hg.bundle. r?gps draft
authorMike Hommey <mh@glandium.org>
Tue, 05 Jul 2016 09:46:25 +0900
changeset 8737 8b7ba7c72484847332ad49cb0222305bc3d0be2b
parent 8736 9667b3a63d6b76be2dec2aab1e99d9f42584158d
child 8738 4d6a323327f43cce9251099b1312a8a39fe6aae4
push id978
push userbmo:mh+mozilla@glandium.org
push dateTue, 05 Jul 2016 00:46:59 +0000
reviewersgps
bugs1284364
Bug 1284364 - Try to import PushStore from cinnabar.hg.bundle. r?gps
git/cinnabar-debug-push.py
--- a/git/cinnabar-debug-push.py
+++ b/git/cinnabar-debug-push.py
@@ -12,19 +12,20 @@ from binascii import hexlify
 import json
 import sys
 
 import cinnabar.util
 from cinnabar.hg import (
     get_ui,
     push,
 )
-from cinnabar.bundle import (
-    PushStore,
-)
+try:
+    from cinnabar.hg.bundle import PushStore
+except ImportError:
+    from cinnabar.bundle import PushStore
 
 try:
     from cinnabar.util import init_logging
 except ImportError:
     def init_logging(): pass
 
 try:
     from cinnabar.hg import (