Any way to update without hgsub processing?
Yuya Nishihara
yuya at tcha.org
Fri Jun 22 10:59:33 UTC 2018
On Fri, 22 Jun 2018 08:23:45 +0200, Marcin Kasperski wrote:
> Is it in any way possible to perform
> hg update -r «revision»
> WITHOUT applying .hgsub?
No.
> 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…).
You can remap the subrepository paths by adding [subpaths] to .hg/hgrc.
https://www.mercurial-scm.org/wiki/Subrepository#Use_.27trivial.27_subrepo_paths_where_possible
More information about the Mercurial
mailing list