Sunday, 17 August 2025

hg recover

そんなのあるのか...

 % hg push
 pushing to ssh://christina/hg/ ...
 searching for changes
 remote: abort: abandoned transaction found
 remote: (run 'hg recover' to clean up transaction)
 abort: stream ended unexpectedly (got 0 bytes, expected 4)

なんと、remove からはできないらしく。server 側は singularity container なので、singularity shell で

 Singularity> hg recover
 rolling back interrupted transaction
 (verify step skipped, run `hg verify` to check your repository content)
 Singularity> hg verify
 checking changesets
 checking manifests
 crosschecking files in changesets and manifests
 checking files
 checked 1182 changesets with 1806 changes to 150 files
 Singularity> exit

まぁ、簡単だが、何年もつかっているけど、はじめてみた

No comments: