【发布时间】:2010-11-11 14:23:04
【问题描述】:
我们最近从 Perforce 迁移到 Mercurial,非常喜欢它!
一个小问题:经过大量研究,我们无法弄清楚如何将存储库中的特殊目录映射到客户端的某个特殊位置。这是我们的 hg 存储库的示例:
/foo/source files
/bar/source files
/build
/macosx/mac make files
/win/windows make files
使用 Perforce,我们使用客户端规范映射将 //depot/build/macosx/... 映射到 Mac 客户端上的 /build/... 和 //depot/build/win/...到 /build/... 在 Windows 开发框中。目录 foo 和 bar 按原样同步。 /foo 和 /bar 中的 Makefile 假定我们的构建 makefile 位于 /build 中,我们希望保持原样。最终的客户端文件集应如下所示:
/foo/source files
/bar/source files
/build/client specific make files
我已经阅读了关于 subrepos 的信息,但这个解决方案似乎不是特定于客户端的。
任何想法如何解决这个问题都将非常感激!
【问题讨论】:
标签: mercurial perforce perforce-client-spec