I'm exploring the possibility of reversing the order of 'dvc-diff'. There are two use cases for dvc-diff:
1) I want to see what I've changed in my workspace since the last commit; show diff _from_ base rev _to_ workspace. 2) I'm reviewing a list of commits by others on my team. The revisions are all newer than my current workspace. So I want to see changes _from_ my workspace _to_ a given rev. For example, when adding or deleting files, showing the diff in the wrong order changes a delete to an add, and vice versa, which is confusing. Currently, 'dvc-diff rev' shows changes _from_ the rev _to_ the workspace, which is appropriate for use case 1. I've hacked in some code in xmtn-dvc-diff (not committed anywhere yet), that chooses the order by looking at the ancestor relationship between the workspace base revision, and the diff target revision. It then computes the diff from the ancestor to the descendant (but including any changed files in the workspace). However, monotone itself doesn't support reversing the order; I'm working on that as well (adding a --reverse option to 'mtn diff'). Do other backends support 'diff --reverse <rev>'? Do other backends support inquiring about the ancestor relationship of two revs? -- -- Stephe _______________________________________________ Dvc-dev mailing list [email protected] https://mail.gna.org/listinfo/dvc-dev
