pushing a repo with subrepos to usb
Yuya Nishihara
yuya at tcha.org
Sat Oct 14 11:15:31 UTC 2017
On Sat, 14 Oct 2017 10:41:56 +0200, Uwe Brauer wrote:
> That works well however one repo as two subrepos.
>
> repo1/subrepo1
> /subrepo2
>
> So I try to push
> hg push -R /home/oub/repo1 /media/oub/LinuxData/oub/repo1
> but I obtain
>
> pushing subrepo subrepo1 to /media/oub/LinuxData/oub/suprepo1
> abort: repository /media/oub/LinuxData/oub/suprepo1
>
> The message is correct since I have
>
> quim-hojas-problemas = ../quim-hojas-problemas
> curso_2016_17 = ../curso_2016_17
>
> In my .hgsub file.
>
> I had to use that setting since otherwise I cannot push that repo (and
> its subrepos) to bitbucket.
>
> So what is the best setting in this situation? Can I find a setting with
> satisfies both needs, I.e pushing locally and to bitbucket?
> I could use links, but I am not huge friends of them, since they make
> things messy.
You can use trivial 'foo = foo' paths and set [subpaths] instead.
https://www.mercurial-scm.org/wiki/Subrepository#Use_.27trivial.27_subrepo_paths_where_possible
More information about the Mercurial
mailing list