问题
Just several days ago, when I push to a hg repository, something like 'xxx does not appear to be an hg repository' appears after push finishes. The output looks like this:
pushing to http://xxx/scm/hg/jewelry
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
abort: 'http://xxx/scm/hg/jewelry' does not appear to be an hg repository:
---%<--- (no content-type)
---%<---
!
The push is actually finished, so this can't be a big deal, except that it's really annoying. So did anyone come across this?
BTW, the hg version on client side is 2.1 & server is 2.3. But this does not seem to be a version problem because it just came out from nowhere several days ago.
回答1:
I'm not certain but it looks like someone has installed a hook on the server to run something after the push and their hook is broken? Do you see any extra detail if you add --debug to the push? Any chance someone recently added a server side changegroup hook? Perhaps 'notify' to send out emails?
来源:https://stackoverflow.com/questions/12493768/xxx-does-not-appear-to-be-an-hg-repository-after-push-finishes