OperationService: implement UserSquash
The breakthrough is that HGitaly is able to control internal Git mirroring and this can be tested from HGitaly (ordinary) integration tests. The presence of the `commit_author` and `timestamp` attributes raise some questions more explicitely than it was the case in the Rails app, where the feature has been implemented long ago by spawning a Mercurial subprocess. We decided to behave identically, and in particular to postpone the question of representing the difference between committer and author to another time, as such a distinction does not exist currently in Mercurial (could be an extension around providing that, though). The `UserSquash` method in itself was only chosen because it does not have many options and is at its core very simple to implement. Closes #163
parent
15f7720b
No related branches found
No related tags found
Showing
- hgitaly/service/operations.py 116 additions, 2 deletionshgitaly/service/operations.py
- hgitaly/service/tests/test_operations.py 149 additions, 9 deletionshgitaly/service/tests/test_operations.py
- hgitaly/tests/common.py 18 additions, 1 deletionhgitaly/tests/common.py
- tests_with_gitaly/test_operations.py 91 additions, 0 deletionstests_with_gitaly/test_operations.py
Loading
Please register or sign in to comment