Any way to update without hgsub processing?

Marcin Kasperski Marcin.Kasperski at mekk.waw.pl
Fri Jun 22 06:23:45 UTC 2018


Is it in any way possible to perform
     hg update -r «revision»
WITHOUT applying .hgsub?

I have at least two cases where it is really needed:

1. (git) repository mentioned in .hgsub is simply no longer available
   (and I need to access the old version code). So I get

     cloning subrepo custom from ssh://no.more.existing.domain/sub/repo
     Cloning into '…'
     ssh: Could not resolve hostname no.more.existing.domain: Name or
service not known
     fatal: Could not read from remote repository.

     Please make sure you have the correct access rights
     and the repository exists.
     abort: git clone error 128 in custom (in subrepository "repo")

  update fails and I can't do anything about it (to fix .hgsub of old version
  I need update to old version first…).

2. subrepo exists but I don't have permissions to clone it. The effect
is similar


More information about the Mercurial mailing list