Commit 10ae0d83 authored by Maxim Rydkin's avatar Maxim Rydkin

replace `is_ancestor` with `ancestor?`

parent 90112f57
...@@ -12,7 +12,7 @@ module Gitlab ...@@ -12,7 +12,7 @@ module Gitlab
!project !project
.repository .repository
.gitaly_commit_client .gitaly_commit_client
.is_ancestor(oldrev, newrev) .ancestor?(oldrev, newrev)
else else
Gitlab::Git::RevList.new( Gitlab::Git::RevList.new(
path_to_repo: project.repository.path_to_repo, path_to_repo: project.repository.path_to_repo,
......
...@@ -440,7 +440,7 @@ module Gitlab ...@@ -440,7 +440,7 @@ module Gitlab
# Returns true is +from+ is direct ancestor to +to+, otherwise false # Returns true is +from+ is direct ancestor to +to+, otherwise false
def ancestor?(from, to) def ancestor?(from, to)
gitaly_commit_client.is_ancestor(from, to) gitaly_commit_client.ancestor?(from, to)
end end
# Return an array of Diff objects that represent the diff # Return an array of Diff objects that represent the diff
......
...@@ -22,7 +22,7 @@ module Gitlab ...@@ -22,7 +22,7 @@ module Gitlab
end end
end end
def is_ancestor(ancestor_id, child_id) def ancestor?(ancestor_id, child_id)
request = Gitaly::CommitIsAncestorRequest.new( request = Gitaly::CommitIsAncestorRequest.new(
repository: @gitaly_repo, repository: @gitaly_repo,
ancestor_id: ancestor_id, ancestor_id: ancestor_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment