Skip to content
Snippets Groups Projects
Commit 6b7c31ba authored by Georges Racinet's avatar Georges Racinet
Browse files

RHGitaly: `GitCommit` message building helper

This parallels the Python implementation: returning a `GitCommit`, this
time from a `ChangelogEntry` instead of Python `changectx` will be
a common need.

The user line parsing is implemented to match the Python implementation
(module `stringutil`). We considered using a regular expression, but it
is not so obvious to obtain the exact same result (actually first experiments
where splitting the brackets with a regexp for quick validation of the
first gRPC method that will use this).

User line and timestamp parsing should find eventually their way into
`hg-core`.
parent 33189bb5
No related branches found
No related tags found
2 merge requests!151heptapod#743: making 0.36 the new stable,!144RHGitaly: implement CommitService.ListCommitsByOid
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment