equal
deleted
inserted
replaced
153 else: |
153 else: |
154 break |
154 break |
155 else: |
155 else: |
156 bkup = tarfile.open(backupfile, 'w|gz') |
156 bkup = tarfile.open(backupfile, 'w|gz') |
157 for filename in os.listdir(tmpdir): |
157 for filename in os.listdir(tmpdir): |
158 bkup.add(osp.join(tmpdir,filename), filename) |
158 bkup.add(osp.join(tmpdir, filename), filename) |
159 bkup.close() |
159 bkup.close() |
160 # call hooks |
160 # call hooks |
161 repo.hm.call_hooks('server_backup', repo=repo, timestamp=timestamp) |
161 repo.hm.call_hooks('server_backup', repo=repo, timestamp=timestamp) |
162 # done |
162 # done |
163 print '-> backup file', backupfile |
163 print '-> backup file', backupfile |
729 subjschema = tschema |
729 subjschema = tschema |
730 objschema = spschema |
730 objschema = spschema |
731 if (rschema.rdef(subjschema, objschema).infered |
731 if (rschema.rdef(subjschema, objschema).infered |
732 or (instschema.has_relation(rschema) and |
732 or (instschema.has_relation(rschema) and |
733 (subjschema, objschema) in instschema[rschema].rdefs)): |
733 (subjschema, objschema) in instschema[rschema].rdefs)): |
734 continue |
734 continue |
735 self.cmd_add_relation_definition( |
735 self.cmd_add_relation_definition( |
736 subjschema.type, rschema.type, objschema.type) |
736 subjschema.type, rschema.type, objschema.type) |
737 if auto: |
737 if auto: |
738 # we have commit here to get relation types actually in the schema |
738 # we have commit here to get relation types actually in the schema |
739 self.commit() |
739 self.commit() |