コード例 #1
0
    def _record(self, records, filename):
        ensure_directories_exist(filename, with_filename=True)

        with open(filename, 'w') as fh:
            json.dump(records,
                      fh,
                      sort_keys=True,
                      check_circular=False,
                      indent=2)
コード例 #2
0
ファイル: svnworkers.py プロジェクト: Tapanito/tacny
    def hasStatusChanged(self):
        # (Re-)create that folder.
        ensure_directories_exist(self.summary_checkout_dir)

        differs = True

        # Diff current against repo summary, if the latter exists.
        if os.path.isfile(self.summary_checkout_file):
            differs = len(self.diff(self.summary_current,
                                    self.summary_checkout_file)) != 0

        return differs
コード例 #3
0
    def hasStatusChanged(self):
        # (Re-)create that folder.
        ensure_directories_exist(self.summary_checkout_dir)

        differs = True

        # Diff current against repo summary, if the latter exists.
        if os.path.isfile(self.summary_checkout_file):
            differs = len(
                self.diff(self.summary_current,
                          self.summary_checkout_file)) != 0

        return differs
コード例 #4
0
    def _record(self, records, filename):
        ensure_directories_exist(filename, with_filename=True)

        with open(filename, 'w') as fh:
            json.dump(records, fh, sort_keys=True, check_circular=False,
                      indent=2)