a bridge to dropbox (git only)

Manuel Jacob me at manueljacob.de
Sat May 30 22:56:20 UTC 2020


On 2020-05-30 13:57, Uwe Brauer wrote:
> Hi
> 
> Googling I found the following
> https://github.com/anishathalye/git-remote-dropbox
> 
> Does anybody know about a similar feature for mercurial?
> I could use the hg-git extension, but I am not sure that this would be 
> a
> could idea.

Hg-git always manages a shadow Git repository. You could write some glue 
code (e.g. a shell function) that

1) pulls using git-remote-dropbox (from inside the .hg/git directory) 
and imports the changes into hg using "hg gimport"
2) exports the changes to git using "hg gexport" and pushes using 
git-remote-dropbox (from inside the .hg/git directory)

This way you have two bridges (hg <-> git <-> dropbox), so there's a 
high change that things break, but you could be lucky.

Alternatively someone could implement a Mercurial peer that can 
communicate with dropbox (that would be the equivalent of what 
git-remove-dropbox does). I don’t know how much work that would be.



More information about the Mercurial mailing list