开发者

Mercurial: Pull from official repo, push to man-in-the-middle repo?

开发者 https://www.devze.com 2023-02-16 10:59 出处:网络
I have a situation where on a dev server I\'d like to pull from the official repo. I\'d make my changes there, then I\'d like to push to a core server, test there as well, then from that core server I

I have a situation where on a dev server I'd like to pull from the official repo. I'd make my changes there, then I'd like to push to a core server, test there as well, then from that core server I'd like to pull from dev (preferably automatically accept the push from dev) and push to the official repo. I need some help setting up t开发者_StackOverflowhis trifecta.

Thanks!

EDIT:

I solved it by using the following format: on dev I added this line to my hgrc file:

default-push = ssh://name@core/project/

and I setup passwordless ssh between the machines. I then was able to pull from official on dev, push to core on dev, and then from core just type hg update to get the changes. On core I can then push to official.

Thanks everyone!


You can setup default paths for push and pull in your hgrc file. See the documentation for [paths] in the hgrc.

You can also setup "named" remote repositories by doing something like this:

[paths]
dev = http://path/to/dev/repo

Then you can run hg push dev to push to that URL.

0

精彩评论

暂无评论...
验证码 换一张
取 消