hgitaly 18.7.2__tar.gz → 18.7.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. {hgitaly-18.7.2/hgitaly.egg-info → hgitaly-18.7.3}/PKG-INFO +1 -1
  2. hgitaly-18.7.3/hgitaly/VERSION +1 -0
  3. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/scripts/load_tests.py +0 -1
  4. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_workdir.py +47 -0
  5. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/workdir.py +6 -0
  6. {hgitaly-18.7.2 → hgitaly-18.7.3/hgitaly.egg-info}/PKG-INFO +1 -1
  7. hgitaly-18.7.2/hgitaly/VERSION +0 -1
  8. {hgitaly-18.7.2 → hgitaly-18.7.3}/LICENSE +0 -0
  9. {hgitaly-18.7.2 → hgitaly-18.7.3}/MANIFEST.in +0 -0
  10. {hgitaly-18.7.2 → hgitaly-18.7.3}/README.md +0 -0
  11. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/__init__.py +0 -0
  12. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/comparison.py +0 -0
  13. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/conftest.py +0 -0
  14. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/gitaly.py +0 -0
  15. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/hgitaly_rhgitaly_comparison.py +0 -0
  16. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/rhgitaly.py +0 -0
  17. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_blob_tree.py +0 -0
  18. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_commit.py +0 -0
  19. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_comparison.py +0 -0
  20. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_diff.py +0 -0
  21. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_gitaly_server.py +0 -0
  22. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_mercurial_aux_git.py +0 -0
  23. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_mercurial_operations.py +0 -0
  24. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_mercurial_repository.py +0 -0
  25. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_operations.py +0 -0
  26. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_ref.py +0 -0
  27. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_remote.py +0 -0
  28. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_repository_service.py +0 -0
  29. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_rhgitaly_server.py +0 -0
  30. {hgitaly-18.7.2 → hgitaly-18.7.3}/functional_tests/test_server.py +0 -0
  31. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgext3rd/__init__.py +0 -0
  32. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgext3rd/hgitaly/__init__.py +0 -0
  33. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgext3rd/hgitaly/revset.py +0 -0
  34. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgext3rd/hgitaly/tests/__init__.py +0 -0
  35. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgext3rd/hgitaly/tests/test_revset.py +0 -0
  36. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgext3rd/hgitaly/tests/test_serve.py +0 -0
  37. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/__init__.py +0 -0
  38. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/branch.py +0 -0
  39. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/changelog.py +0 -0
  40. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/diff.py +0 -0
  41. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/errors.py +0 -0
  42. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/feature.py +0 -0
  43. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/file_content.py +0 -0
  44. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/file_context.py +0 -0
  45. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/git.py +0 -0
  46. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/gitlab_ref.py +0 -0
  47. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/identification.py +0 -0
  48. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/logging.py +0 -0
  49. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/manifest.py +0 -0
  50. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/message.py +0 -0
  51. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/oid.py +0 -0
  52. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/pagination.py +0 -0
  53. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/path.py +0 -0
  54. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/peer.py +0 -0
  55. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/procutil.py +0 -0
  56. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/repository.py +0 -0
  57. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/revision.py +0 -0
  58. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/revset.py +0 -0
  59. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/scripts/__init__.py +0 -0
  60. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/scripts/stats.py +0 -0
  61. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/server/__init__.py +0 -0
  62. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/server/address.py +0 -0
  63. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/server/mono.py +0 -0
  64. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/server/tests/__init__.py +0 -0
  65. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/server/tests/test_address.py +0 -0
  66. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/server/tests/test_mono.py +0 -0
  67. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/server/tests/test_worker.py +0 -0
  68. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/server/worker.py +0 -0
  69. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/__init__.py +0 -0
  70. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/analysis.py +0 -0
  71. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/blob.py +0 -0
  72. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/commit.py +0 -0
  73. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/diff.py +0 -0
  74. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/interceptors.py +0 -0
  75. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/mercurial_changeset.py +0 -0
  76. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/mercurial_namespace.py +0 -0
  77. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/mercurial_operations.py +0 -0
  78. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/mercurial_repository.py +0 -0
  79. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/operations.py +0 -0
  80. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/ref.py +0 -0
  81. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/repository.py +0 -0
  82. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/server.py +0 -0
  83. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/__init__.py +0 -0
  84. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/fixture.py +0 -0
  85. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_analysis.py +0 -0
  86. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_blob.py +0 -0
  87. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_commit.py +0 -0
  88. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_default_branch.py +0 -0
  89. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_diff.py +0 -0
  90. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_mercurial_changeset.py +0 -0
  91. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_mercurial_namespace.py +0 -0
  92. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_mercurial_operations.py +0 -0
  93. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_mercurial_repository.py +0 -0
  94. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_operations.py +0 -0
  95. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_ref.py +0 -0
  96. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_repository_service.py +0 -0
  97. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/service/tests/test_server.py +0 -0
  98. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/servicer.py +0 -0
  99. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/ssh.py +0 -0
  100. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stream.py +0 -0
  101. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/__init__.py +0 -0
  102. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/analysis_pb2.py +0 -0
  103. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/analysis_pb2_grpc.py +0 -0
  104. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/blob_pb2.py +0 -0
  105. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/blob_pb2_grpc.py +0 -0
  106. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/commit_pb2.py +0 -0
  107. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/commit_pb2_grpc.py +0 -0
  108. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/diff_pb2.py +0 -0
  109. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/diff_pb2_grpc.py +0 -0
  110. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/errors_pb2.py +0 -0
  111. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/errors_pb2_grpc.py +0 -0
  112. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/lint_pb2.py +0 -0
  113. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/lint_pb2_grpc.py +0 -0
  114. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_aux_git_pb2.py +0 -0
  115. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_aux_git_pb2_grpc.py +0 -0
  116. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_changeset_pb2.py +0 -0
  117. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_changeset_pb2_grpc.py +0 -0
  118. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_namespace_pb2.py +0 -0
  119. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_namespace_pb2_grpc.py +0 -0
  120. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_operations_pb2.py +0 -0
  121. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_operations_pb2_grpc.py +0 -0
  122. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_repository_pb2.py +0 -0
  123. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/mercurial_repository_pb2_grpc.py +0 -0
  124. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/operations_pb2.py +0 -0
  125. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/operations_pb2_grpc.py +0 -0
  126. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/ref_pb2.py +0 -0
  127. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/ref_pb2_grpc.py +0 -0
  128. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/remote_pb2.py +0 -0
  129. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/remote_pb2_grpc.py +0 -0
  130. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/repository_pb2.py +0 -0
  131. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/repository_pb2_grpc.py +0 -0
  132. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/server_pb2.py +0 -0
  133. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/server_pb2_grpc.py +0 -0
  134. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/shared_pb2.py +0 -0
  135. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/stub/shared_pb2_grpc.py +0 -0
  136. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tag.py +0 -0
  137. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/__init__.py +0 -0
  138. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/bundle.py +0 -0
  139. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/context.py +0 -0
  140. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/grpc.py +0 -0
  141. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/multiprocessing.py +0 -0
  142. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/repo.py +0 -0
  143. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/ssh.py +0 -0
  144. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/sshd.py +0 -0
  145. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/storage.py +0 -0
  146. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/tests/__init__.py +0 -0
  147. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/testing/tests/test_sshd.py +0 -0
  148. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/__init__.py +0 -0
  149. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/common.py +0 -0
  150. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_branch.py +0 -0
  151. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_diff.py +0 -0
  152. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_errors.py +0 -0
  153. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_feature.py +0 -0
  154. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_file_context.py +0 -0
  155. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_gitlab_ref.py +0 -0
  156. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_identification.py +0 -0
  157. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_manifest.py +0 -0
  158. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_messages.py +0 -0
  159. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_oid.py +0 -0
  160. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_peer.py +0 -0
  161. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_repository.py +0 -0
  162. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_revision.py +0 -0
  163. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_revset.py +0 -0
  164. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_servicer.py +0 -0
  165. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_stream.py +0 -0
  166. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/tests/test_tag.py +0 -0
  167. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly/util.py +0 -0
  168. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly.egg-info/SOURCES.txt +0 -0
  169. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly.egg-info/dependency_links.txt +0 -0
  170. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly.egg-info/entry_points.txt +0 -0
  171. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly.egg-info/requires.txt +0 -0
  172. {hgitaly-18.7.2 → hgitaly-18.7.3}/hgitaly.egg-info/top_level.txt +0 -0
  173. {hgitaly-18.7.2 → hgitaly-18.7.3}/install-requirements.txt +0 -0
  174. {hgitaly-18.7.2 → hgitaly-18.7.3}/setup.cfg +0 -0
  175. {hgitaly-18.7.2 → hgitaly-18.7.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hgitaly
3
- Version: 18.7.2
3
+ Version: 18.7.3
4
4
  Summary: Server-side implementation of Gitaly protocol for Mercurial
5
5
  Home-page: https://foss.heptapod.net/heptapod/hgitaly
6
6
  Author: Georges Racinet
@@ -0,0 +1 @@
1
+ 18.7.3
@@ -88,7 +88,6 @@ class LoadWorker:
88
88
  thresholds.append((current, meth))
89
89
  current += weight / total_weight
90
90
  cls.random_thresholds = thresholds
91
- logger.warning("Random thresholds: %r", thresholds)
92
91
 
93
92
  @classmethod
94
93
  def random_method(cls):
@@ -14,6 +14,7 @@ import uuid
14
14
  import warnings
15
15
 
16
16
  from mercurial import (
17
+ cmdutil,
17
18
  error,
18
19
  hg,
19
20
  )
@@ -452,6 +453,52 @@ def test_working_directory_merge(wd_fixture, merge_result):
452
453
  # TODO clean status (provide in mercurial_testhelpers)
453
454
 
454
455
 
456
+ def test_working_directory_interruped_rebase(wd_fixture):
457
+ wds_root, wrapper = wd_fixture
458
+ commit_file = wrapper.commit_file
459
+
460
+ # a simple merge setup with a conflicting topic
461
+ ctx0 = commit_file('foo')
462
+ cs_default = commit_file('foo', content="default")
463
+ cs_topic = commit_file('foo', parent=ctx0, topic='top', content="top")
464
+
465
+ # leaving failed rebase in a working directory
466
+ with working_directory(wds_root, wrapper.repo,
467
+ client_id=CLIENT_ID,
468
+ incarnation_id=INCARNATION_ID,
469
+ changeset=cs_topic) as wd:
470
+ default_wd_id = wd.id
471
+ # in these tests, the extensions are not activated globally, hence
472
+ # not in the workdir unless we do it explicitly.
473
+ # We'll have to find a better way, but perhaps another day.
474
+ with open(wd.path / '.hg/hgrc', 'a') as hgrcf:
475
+ hgrcf.write('\n'.join(('[extensions]',
476
+ 'rebase=',
477
+ 'topic=',
478
+ 'evolve=',
479
+ )))
480
+ wd_wrapper = LocalRepoWrapper.load(wd.path)
481
+ try:
482
+ wd_wrapper.command('rebase')
483
+ except error.Abort:
484
+ pass # that is the point
485
+
486
+ # re-acquisition works because it cleans up remnants
487
+ # target changeset could be either cs_default or cs_topic,
488
+ # as only the persisten branch matters)
489
+ with working_directory(wds_root, wrapper.repo,
490
+ client_id=CLIENT_ID,
491
+ incarnation_id=INCARNATION_ID,
492
+ changeset=cs_default) as wd:
493
+ assert wd.id == default_wd_id
494
+
495
+ wctx = wd.repo[None]
496
+ assert wctx.p1() == cs_default
497
+ assert wctx.p2().rev() == NULL_REVISION
498
+ # TODO clean status (provide in mercurial_testhelpers)
499
+ assert cmdutil.getunfinishedstate(wd.repo) is None
500
+
501
+
455
502
  @pytest.fixture
456
503
  def purge_fixture(wd_fixture):
457
504
  wds_root, wrapper = wd_fixture
@@ -103,6 +103,12 @@ class WorkingDirectory:
103
103
  return cmd(repo.ui, repo, *args, **kwargs)
104
104
 
105
105
  def clean_update(self, target_rev):
106
+ unfinished = cmdutil.getunfinishedstate(self.repo)
107
+ if unfinished is not None:
108
+ opname = unfinished._opname
109
+ if opname == b'rebase':
110
+ self.command(b'rebase', abort=True)
111
+
106
112
  try:
107
113
  self.uncaught_update(target_rev, clean=True, hidden=True)
108
114
  except error.Abort as exc:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hgitaly
3
- Version: 18.7.2
3
+ Version: 18.7.3
4
4
  Summary: Server-side implementation of Gitaly protocol for Mercurial
5
5
  Home-page: https://foss.heptapod.net/heptapod/hgitaly
6
6
  Author: Georges Racinet
@@ -1 +0,0 @@
1
- 18.7.2
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes