Esempio n. 1
0
 def detect_hg_repository(self, path=None):
     if path is None:
         path = getcwd()
     hg_repository = is_hg_installed() and get_vcs_root(path) is not None
     self.hg_manifest.setEnabled(hg_repository)
     if not hg_repository and self.hg_manifest.isChecked():
         self.custom_dir.setChecked(True)
Esempio n. 2
0
 def detect_hg_repository(self, path=None):
     if path is None:
         path = getcwd()
     hg_repository = is_hg_installed() and get_vcs_root(path) is not None
     self.hg_manifest.setEnabled(hg_repository)
     if not hg_repository and self.hg_manifest.isChecked():
         self.custom_dir.setChecked(True)