hgext/blackbox.py
changeset 28552 999e1acc61aa
parent 28407 63da8bd0c65e
child 29841 d5883fd055c6
--- a/hgext/blackbox.py	Mon Mar 14 23:28:14 2016 +0000
+++ b/hgext/blackbox.py	Tue Mar 15 10:36:02 2016 +0000
@@ -80,10 +80,10 @@
             if src is None:
                 self._partialinit()
             else:
-                self._bbfp = src._bbfp
+                self._bbfp = getattr(src, '_bbfp', None)
                 self._bbinlog = False
-                self._bbrepo = src._bbrepo
-                self._bbvfs = src._bbvfs
+                self._bbrepo = getattr(src, '_bbrepo', None)
+                self._bbvfs = getattr(src, '_bbvfs', None)
 
         def _partialinit(self):
             if util.safehasattr(self, '_bbvfs'):