>>> "DD" == David Demelier <[email protected]> writes:
> Le 12/09/2019 à 21:21, Uwe Brauer a écrit : >> I have the following setting in my local hgrc file >> [paths] >> default = https://[email protected]/kalthad/chemistry-exercises-problems >> sourcehut = ssh://[email protected]/~oub/chemistry-exercises-problems >> [hooks] >> incoming.notify = python:hgext.notify.hook >> outgoing.notify = python:hgext.notify.hook >> >> changegroup.default = hg push default >> changegroup.sourcehut = hg push sourcehut >> >> But hg push only pushes to default not to sourcehut. > Because that's why it's named default :-) > I create alias to push to several repository at once, otherwise a > simple oneliner could do the trick: > for p in $(hg config paths | cut -d'=' -f2); do hg push $p; done > Also, to my understanding you are trying to create a hook that > automatically sync two repositories. In my opinion it's not the > responsability of a hook especially since sometimes you'll have to > specify bookmarks, --close-branch or --new-branch. Thanks, but Marcin's package mercurial all_paths Does precisely what I was looking for (haven't tested it with --new-branches though). Uwe
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Mercurial mailing list [email protected] https://www.mercurial-scm.org/mailman/listinfo/mercurial
