简体   繁体   中英

Hg Push: does not appear to be an hg repository

Similar to this question, I have problems pushing to a Mercurial repository. In my case, pushing is just not possible, while everything else works. The error log:

hg push http://myrepo/hg/repo
pushing to http://myrepo/hg/repo
searching for changes
'http://myrepo/hg/repo' does not appear to be an hg repository:

The push is not executed, nor are any hooks installed. No network errors. Everything else works fine. (clone, pull, incoming, outgoing...)

Apparently, the repository got stuck in a certain state, not allowing pushes. Running the following command on the remote repository fixed the issue:

hg recover 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM