简体   繁体   English

是否可以在 Subversion 中手动增加/设置提交号?

[英]Is is possible to manually increment/set the commit number in Subversion?

We use subversion's commit number as a build number.我们使用 subversion 的提交号作为内部版本号。 I'm on a different repo now, and want to adjust the Subversion commit number so it is inline with the original repo.我现在在另一个 repo 上,并且想要调整 Subversion 提交号,使其与原始 repo 内联。 Is this possible?这可能吗?

No. Short of making a bunch of commits to the new repo to make the number match.没有。没有对新的 repo 进行大量提交以使数字匹配。

I'd recommend appending the svn revision number or the build system build id to the semantic version.我建议将 svn 修订号或构建系统构建 ID 附加到语义版本。 For example, if you had 1.2.0-3344 in the old repo, you could bump the number in the new repo to 1.2.1-1 (assuming the code didn't change enough to up other parts of the version).例如,如果您在旧存储库中有1.2.0-3344 ,则可以将新存储库中的数字提高到1.2.1-1 (假设代码更改不足以升级版本的其他部分)。

TL;DR - build numbers alone don't uniquely identify. TL;DR - 单独的内部版本号不能唯一标识。 You won't likely be able to control the build numbers to the degree you want.您可能无法将内部版本号控制到您想要的程度。 Build numbers are helpful to decorate version numbers.内部版本号有助于修饰版本号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM