dvc: change dvcfile.dump to do synchronized dump by default (#4544)

The API of `Dvcfile.dump` has been changed to
`dump(stage, update_pipeline=True, update_lock=True)`,
which will make it to always dump by default to both files,
and provide flags to suppress one or the other.

Fixes #4235
This commit is contained in:
Saugat Pachhai
2020-09-10 13:12:00 +05:45
committed by GitHub
parent 7fa90e425d
commit 2931d30ca5
8 changed files with 17 additions and 13 deletions
+1 -1
View File
@@ -45,5 +45,5 @@ def commit(self, target, with_deps=False, recursive=False, force=False):
stage.save()
stage.commit()
Dvcfile(self, stage.path).dump(stage)
Dvcfile(self, stage.path).dump(stage, update_pipeline=False)
return stages