# Hgkeeper migration

**URL:** <https://discourse.imfreedom.org/t/hgkeeper-migration/153>\
**Category:** Infrastructure\
**Tags:** news, development\
**Created:** [May 5, 2024, 7:15am UTC](https://discourse.imfreedom.org/t/hgkeeper-migration/153 "2024-05-05T07:15:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![grim](https://yyz1.discourse-cdn.com/flex007/user_avatar/discourse.imfreedom.org/grim/32/4_2.png) [@grim](https://discourse.imfreedom.org/u/grim)\
**Post date:** [May 5, 2024, 7:15am UTC](https://discourse.imfreedom.org/t/hgkeeper-migration/153/1 "2024-05-05T07:15:15Z")

</div>

Greetings everyone!

In the next few weeks I’m going to be migrating [keep.imfreedom.org](http://keep.imfreedom.org) from the kubernetes cluster to a stand alone node. This will go mostly unnoticed to everyone, but to the developers with write access (using ssh), you may need to update your remotes.

hgkeeper itself doesn’t care about the SSH username, so you can update this immediately without any issue. If you cloned with `ssh://keep.imfreedom.org` as the start of the URL, you’ll have to update your remote to include the `hg` username.

Unfortunately, hg doesn’t have a command to edit this as they consider files that are modified by the user to not be machine readable, so you have to do it manually. To do this, you just need to edit the file `.hg/hgrc` in your clones. In that file you’ll see a section like the following:

```auto
[paths]
default = ssh://keep.imfreedom.org/pidgin/pidgin

```

All you need to do is add the `hg` user and save the file.

```auto
[paths]
default = ssh://hg@keep.imfreedom.org/pidgin/pidgin

```

You’ll of course have to do this with every clone, which sucks, but this is a one time deal.

If you have any questions, feel free to reply here.

---

<div class="post-metadata">

**Author:** ![QuLogic](https://yyz1.discourse-cdn.com/flex007/user_avatar/discourse.imfreedom.org/qulogic/32/5_2.png) [@QuLogic](https://discourse.imfreedom.org/u/QuLogic)\
**Post date:** [May 9, 2024, 5:25am UTC](https://discourse.imfreedom.org/t/hgkeeper-migration/153/2 "2024-05-09T05:25:34Z")

</div>

I think you should also be able to set the user in `~/.ssh/config` globally:

```auto
Host keep.imfreedom.org
	User hg

```

---

<div class="post-metadata">

**Author:** ![grim](https://yyz1.discourse-cdn.com/flex007/user_avatar/discourse.imfreedom.org/grim/32/4_2.png) [@grim](https://discourse.imfreedom.org/u/grim)\
**Post date:** [May 9, 2024, 5:57pm UTC](https://discourse.imfreedom.org/t/hgkeeper-migration/153/3 "2024-05-09T17:57:08Z")

</div>

Oh good point! That’s great for the migration, but going forward using the right username keeps all the information in a single place 🙂

---

<div class="post-metadata">

**Author:** ![grim](https://yyz1.discourse-cdn.com/flex007/user_avatar/discourse.imfreedom.org/grim/32/4_2.png) [@grim](https://discourse.imfreedom.org/u/grim)\
**Post date:** [June 26, 2024, 8:01pm UTC](https://discourse.imfreedom.org/t/hgkeeper-migration/153/4 "2024-06-26T20:01:20Z")

</div>

Just wanted to update everyone that I’m planning on doing this migration this weekend! I’m not sure on exact timeline or anything but expect random outages through the weekend.

---

<div class="post-metadata">

**Author:** ![grim](https://yyz1.discourse-cdn.com/flex007/user_avatar/discourse.imfreedom.org/grim/32/4_2.png) [@grim](https://discourse.imfreedom.org/u/grim)\
**Post date:** [July 2, 2024, 6:20am UTC](https://discourse.imfreedom.org/t/hgkeeper-migration/153/5 "2024-07-02T06:20:28Z")

</div>

This migration has been complete. There have been some causalities, like the theme doesn’t work at the moment, but everything else is functional.

If you run into anything, please let me know here.
