gitlab-org--gitlab-foss/spec/lib/gitlab/git
Timothy Andrew b44eaf8e07 Sort the network graph both by commit date and topographically.
- Previously, we sorted commits by date, which seemed to work okay.

- The one edge case where this failed was when multiple commits have the same
  commit date (for example: when a range of commits are cherry picked with a
  single command, they all have the same commit date [and different author
  dates]).

- Commits with the same commit date would be sorted arbitrarily, and usually
  break the network graph.

- This commit solves the problem by both sorting by date, and by sorting
  topographically (parents aren't displayed until all their children are
  displayed)

- Include review comments from @adamniedzielski

A more detailed explanation is present here:
https://gitlab.com/gitlab-org/gitlab-ce/issues/30973#note_28706230
2017-05-04 04:21:12 +00:00
..
attributes_spec.rb Incorporate Gitaly client for refs service 2017-04-04 16:53:44 +02:00
blame_spec.rb Incorporate Gitaly client for refs service 2017-04-04 16:53:44 +02:00
blob_snippet_spec.rb Fix RSpec/DescribeSymbol cop violations 2017-03-24 19:04:03 -04:00
blob_spec.rb Fix specs 2017-04-17 18:31:23 -05:00
branch_spec.rb Incorporate Gitaly client for refs service 2017-04-04 16:53:44 +02:00
commit_spec.rb Incorporate Gitaly client for refs service 2017-04-04 16:53:44 +02:00
compare_spec.rb Incorporate Gitaly client for refs service 2017-04-04 16:53:44 +02:00
diff_collection_spec.rb Fix RSpec/DescribeSymbol cop violations 2017-03-24 19:04:03 -04:00
diff_spec.rb Incorporate Gitaly client for refs service 2017-04-04 16:53:44 +02:00
encoding_helper_spec.rb Return empty string on UTF8 conversion with U_STRING_NOT_TERMINATED_WARNING error 2017-04-20 16:10:33 +02:00
env_spec.rb Add a Gitlab::Git::Env to store Git-specific env thread-safely 2017-04-10 16:10:18 +02:00
hook_spec.rb
index_spec.rb Refactor changing files in web UI 2017-04-20 00:37:44 +00:00
repository_spec.rb Sort the network graph both by commit date and topographically. 2017-05-04 04:21:12 +00:00
rev_list_spec.rb Retrieve Git-specific env in Gitlab::Git::RevList and add a new #new_refs method 2017-04-10 16:10:18 +02:00
tag_spec.rb Incorporate Gitaly client for refs service 2017-04-04 16:53:44 +02:00
tree_spec.rb Incorporate Gitaly client for refs service 2017-04-04 16:53:44 +02:00
util_spec.rb Auto-correct `RSpec/DescribedClass` violations 2017-05-01 11:13:33 -04:00