Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
1fc3e251218f
Commit
9621f957
authored
Oct 19, 2020
by
Georges Racinet
🦑
Browse files
HgGitRepository: better description of `hg_env_for_write` duties
--HG-- branch : heptapod
parent
c58b804d83a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/gitlab/mercurial/hg_git_repository.rb
View file @
1fc3e251
...
...
@@ -383,6 +383,11 @@ def hg_branchmap_branch(hg_branch, topic)
end
# Return a suitable environment for write operations (merge etc.)
#
# This method assumes that write permission is already granted,
# it adds the publish permission if the given user has the appropriate
# role (at least Maintainer as of this writing, but we should have
# a new Publisher role soon)
def
hg_env_for_write
(
user
)
hg_perm_user
=
if
@hg_project_for_perms
.
nil?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment