Monotone - 只拉取存储库的最新版本

发布于 2024-07-16 03:27:56 字数 117 浏览 4 评论 0原文

我有一个远程单调存储库,我想从中提取,但我真的只需要最新版本(不,不需要历史记录。是的,我确定。而且我真的不想等待一小时-需要一半才能获得完整的历史记录)。

有没有一种快速而简单的方法可以做到这一点?

I have a remote monotone repos I want to pull from, but I really only need the latest revision (Nope, don't need the history. Yes I'm sure. And I really don't want to wait the hour-and-a-half required to get the full history).

Is there a quick and easy way I can do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柳若烟 2024-07-23 03:27:56

monotone 是一个版本控制系统,它的主要原因是开发人员使用它来实际管理历史记录,而不是用户用来获取夜间 tarball...所以,即使很难,它肯定是一个有用的功能,你想要的是尚未实现。 当然,许多网站确实提供夜间 tarball,但这与他们使用的特定版本系统没有太大关系,更多的是与他们放置的一些 cron 脚本有关(这些脚本很容易被也可以使用服务器端挂钩(例如更新 monotone 网站本身 一旦上传新版本)。

OTOH,如果您想要“真正签出”一组不完整的修订版(针对开发人员,而不是作为静态 tarball),那么您想要的是未来的功能,用单调的行话来说,该功能称为 部分拉动

如果你真正的意思是,是的,你也想拥有历史记录,但只是出于性能原因试图避免这种情况,那仍然是一个不同的问题......主要原因是“mtn pull” (或“mtn同步”的拉动部分)并不意味着“我想下载东西”,而是真正意味着“我想下载东西并以加密方式检查它的每一个位,以便我确信永远不会有不受信任的数据显示在我的本地数据库中”,当然,加密检查每一位都需要一些时间......是的,“拉动而不检查,我稍后会做‘mtn检查’”可以在这里有所帮助。

我确实同意,对于真正只想​​下载当前版本的“即时 tarball”的用户来说可能是有用的,并且对于对过去历史不太感兴趣的开发人员来说,部分拉动或“快速未经检查的拉动”可能是一种选择。有趣的功能。 不幸的是,单调的贡献者到目前为止还没有设法编写这些功能; 任何帮助表示赞赏。 ;-)

monotone is a versioning system, its main reason to be is to be used by developers to actually manage the history and not by users to get the nightly tarball... so, even tough it could certainly be an useful feature, what you want was not yet implemented. Of course many websites do provide nightly tarballs, but that has nothing much to do with the specific versionig system they're using anyways and more with some cron script they have laying around (and those could be easily be done for monotone-hosted projects as well, even in realtime, using server-side hooks such as the one that updates monotone website itself as soon as a new revision is uploaded).

OTOH if you want a "real checkout" of an incomplete set of revisions (intended for a developer, not as a static tarball) what you want is a future feature which in monotone lingo is called partial pull.

If what you really meant is that, yes, you would like to have the history too, but was only trying to avoid that for performance reasons, that's a still different issue... and the main reason for that is that "mtn pull" (or the pull-part of "mtn sync") doesn't mean "I want to download stuff" but really means "I want to download stuff and cryptographically check every single bit of it so that I'm sure no untrusted data ever shows up in my local database" and, of course, cryptographically check every single bit needs some time... yes, a "pull without checking, I will do 'mtn check' later" could help here.

I do agree that, for a user that really only wants to download "an instant tarball" of current revision could be useful and, for a developer which is not much interested in past history, partial pull or "fast unchecked pull" could be an interesting features. Unfortunately, the monotone contributors didn't so far mange to write those features; any help is appreciated. ;-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文