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
hgitaly
Commits
40ad2d3b6b84
Commit
40ad2d3b
authored
Jun 17, 2021
by
Georges Racinet on mutations.racinet.fr
Browse files
CommitService: more use of full request logging
parent
425363a328f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
hgitaly/service/commit.py
View file @
40ad2d3b
...
...
@@ -412,6 +412,7 @@
def
FindCommit
(
self
,
request
:
FindCommitRequest
,
context
)
->
FindCommitResponse
:
logger
.
debug
(
"Request %r"
,
message
.
Logging
(
request
))
repo
=
self
.
load_repo
(
request
.
repository
,
context
)
revision
=
request
.
revision
logger
.
debug
(
"FindCommit revision=%r"
,
revision
)
...
...
@@ -428,6 +429,7 @@
def
FindAllCommits
(
self
,
request
:
FindAllCommitsRequest
,
context
)
->
FindAllCommitsResponse
:
logger
.
debug
(
"Request %r"
,
message
.
Logging
(
request
))
repo
=
self
.
load_repo
(
request
.
repository
,
context
)
revision
=
request
.
revision
opts
=
{}
...
...
@@ -471,6 +473,8 @@
def
FindCommits
(
self
,
request
:
FindCommitsRequest
,
context
)
->
FindCommitsResponse
:
req_log
=
message
.
Logging
(
request
)
logger
.
debug
(
"Request %r"
,
req_log
)
if
request
.
limit
==
0
:
return
...
...
@@ -484,8 +488,7 @@
if
request
.
revision
and
not
opts
[
b
'rev'
][
0
]:
logger
.
debug
(
"FindCommits revision %r could not be found"
,
request
.
revision
)
"Request %r, revision could not be found"
,
req_log
)
return
FindCommitsResponse
()
if
util
.
versiontuple
(
n
=
2
)
<=
(
5
,
5
):
# hg<=5.5
...
...
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