keybase / keybase-issues

A single repo for managing publicly recognized issues with the keybase client, installer, and website.
902 stars 37 forks source link

ER: support for Mercurial (Hg) #3526

Open pkoppstein opened 4 years ago

pkoppstein commented 4 years ago

As one of many bitbucket refugees, I am wondering whether any thought has been given to adding Mercurial to your array of DVCS options. Thank you for your consideration.

juanfra684 commented 4 years ago

The keybase git helper just uses a hidden directory in kbfs for the git repos. You could use something similar for mercurial:

$ cd to-your-kbfs-fuse-mount-point
$ mkdir mercurial-repos
$ cd mercurial-repos
$ hg clone -U https://www.mercurial-scm.org/repo/hello/
requesting all changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 2 files
new changesets 0a04b987be5a:82e55d328c8c
$ cd to-directory-outside-of-kbfs
$ hg clone /your/fuse/kbfs/dir/private/youruser/mercurial-repos/hello
destination directory: hello
updating to branch default
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd hello
$ echo 'something' > Makefile
$ hg commit -m "something"
$ hg push
pushing to /your/fuse/kbfs/dir/private/juanfra/test-hg-2
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files

Never touch directly the mercurial-repos directory and your repos will work fine.