Hg Mercurial over Google 驱动器问题

Hg Mercurial over Google Drive issue

我都有一个Mercurial-Hg repository on a Google Drive folder. I use it as a base repo to be used on few computers. Using Tortoise-Hg

它曾经像魅力一样工作得很好,但上周我遇到了一个我不明白的麻烦:做正常的操作(本地提交,hg push,hg pull 来自其他本地 repo ...)我得到了一个Google 云端硬盘用户出错。我修复了它,从那时起本地回购分歧。我尝试了很多 HG 技巧(还原、退出、创建新的本地存储库...)但是...事实是:

显然 Google 驱动器文件夹同步正确(我测试它在计算机 1 中创建一个新的虚拟文件并将其同步到计算机 2)。

这怎么可能?有什么提示吗?建议?

自答题。以防万一它对其他人有用:

@Lasse Vågsæther Karlsen 评论绝对正确:

DO NOT under any circumstances use any kind of file-level synchronization tool, such as Dropbox, Google Drive, OneDrive, Jottacloud, or any other such tool, to synchronize distributed version control repositories between computers. [...]

You should move your repository out of Google Drive, fix it, and then set up a proper distributed version control repository somewhere that you can push/pull against.

完成!从不同的 Google 驱动器文件夹之一克隆到全新的 Bitbucket 存储库(配置为 HG-Mercurial 存储库)。做起来非常简单。

然后从 Bitbucket 重新克隆回所有使用 repo 的计算机。 Google 已放弃驱动器文件夹。

现在所有的 repos 克隆都可以正常工作了! ...我想知道为什么我以前没有用这个旧的回购协议这样做。其实我意识到这是必须的。