Skip to content

Commit

Permalink
diff: remove extra sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr. Outis committed Jan 27, 2020
1 parent e6a957a commit 10c0ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dvc/command/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _digest(checksum):
if not entries:
continue

entries = sorted(tuple(entry.values()) for entry in entries)
entries = [tuple(entry.values()) for entry in entries]
entries = [
"{space}{checksum}{separator}{filename}".format(
space=" ",
Expand Down
2 changes: 1 addition & 1 deletion tests/func/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ def test_cli(tmp_dir, scm, dvc, mocker, capsys):
diff = {
"added": [],
"deleted": [
{"filename": "foo", "checksum": digest("foo")},
{"filename": "bar", "checksum": digest("bar")},
{"filename": "foo", "checksum": digest("foo")},
],
"modified": [
{
Expand Down

0 comments on commit 10c0ff2

Please sign in to comment.