Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't I use hg update offline?

When I use Mercurial and try to do a

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

without network connection I get

"URLError getaddrinfo failed". 

Shouldn't I be able to to this since the actual repository is on my computer?

like image 1000
Jonatan B Avatar asked Dec 21 '22 06:12

Jonatan B


1 Answers

another guess is that you have a subrepository reference in your repository that has an absolute path to a remote location and you are updating to a changeset in your parent repository that references a changeset in the subrepository that you don't have locally, so it is trying to do a pull on that remote repository that is referenced as a subrepository. so what is preventing your update is not a need to connect to a remote repository for your repository itself, but for the subrepository that is referenced absolutely.

like image 99
Dave Rael Avatar answered Jan 02 '23 05:01

Dave Rael