Can't I use the hg update offline?

When I use Mercurial and try to do

hg update --repository C:\Projekt\Learnify\Systems\myapp -rev 271 --check 

without network connection i get

 "URLError getaddrinfo failed". 

Can't I do this since the actual repository is on my computer?

+4
source share
3 answers

another hunch is that you have a link to a subrepositor in your repository that has an absolute path to a remote location, and you are updating a set of changes in your parent repository that references a set of changes in a subrepositor that you do not have locally, therefore, he is trying to attempt to use this remote repository referenced as a subrepository. therefore, to prevent your update, you do not need to connect to a remote repository for the repository itself, but for the subresimment that is absolutely referenced.

+4
source

try

 hg update --repository file://C:\Projekt\Learnify\Systems\myapp -rev 271 --check 

to say hg this is not a network protocol uri

+3
source

I assume that you are using a shared repository (one that is cloned with "hg share" instead of the "hg clone" command). This means that the story has never been cloned. You can check the file ".hg / sharedpath". If this file exists, the actual repo is in a different place.

I suggest that when you return to the Internet, make another clone of your repository.

+3
source

Source: https://habr.com/ru/post/1382250/


All Articles