From da82c8fb191fbfaa7f05c336db885747e755eb94 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Fri, 20 Dec 2019 11:21:42 -0800 Subject: [PATCH] Updated hg docs --- hg/index.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/hg/index.md b/hg/index.md index aefa06a..95d952b 100644 --- a/hg/index.md +++ b/hg/index.md @@ -3,9 +3,36 @@ title: Mercurial on code.netlandish.com --- You can find all Mercurial repositories on [hg.code.netlandish.com][nlhg]. If -you have an account on our systems then you can also create your own repos for +you have an account on our systems then you can also create your own repo's for hosting, etc. +## Updating Your Repository + +To update your local repository to use the new netlandish sourcehut platform +simply go into your repository's root directory and edit the `.hg/hgrc` file. +You will see the following: + +``` +[paths] +default = ssh://hg@bitbucket.org/netlandish/repo_name +``` + +We need to change the default to the new platform. You can keep the BitBucket +like if you'd like for the time being. This can be useful in case other team +members have not updated their repo's yet or accidentally push to the wrong +location and now you have to pull their changes in. Example: + +``` +[paths] +default = ssh://hg@hg.code.netlandish.com/~netlandish/repo_name +bb = ssh://hg@bitbucket.org/netlandish/repo_name +``` + +Then you can simply do things like: `hg pull bb` to pull from the BitBucket +repo. + +## Collaboration + Collaboration is handled via email. All patches, discussion, code review, etc. is done via email and our sourcehut platform. -- 2.43.0