Example #1
0
 def __init__(self, bundle):
     self._bundle = bundle
     self._use_store_changegroup = False
     if GitHgHelper.supports(GitHgHelper.STORE_CHANGEGROUP) and \
             experiment('store-changegroup'):
         self._use_store_changegroup = True
         self._bundle = store_changegroup(bundle)
Example #2
0
 def setUp(self):
     self.git_dir = os.environ.get('GIT_DIR')
     tmpdir = tempfile.mkdtemp()
     Git.run('init', '--bare', tmpdir, stdout=open(os.devnull, 'w'))
     os.environ['GIT_DIR'] = tmpdir
     os.environ['GIT_CINNABAR_EXPERIMENTS'] = \
         'store' if self.NEW_STORE else ''
     self.assertEquals(
         GitHgHelper.supports((b'store', b'new')), self.NEW_STORE)
Example #3
0
 def __init__(self, bundle):
     self._bundle = bundle
     self._use_store_changegroup = False
     if GitHgHelper.supports(GitHgHelper.STORE_CHANGEGROUP):
         self._use_store_changegroup = True
         self._bundle = store_changegroup(bundle)