在 VSS 中合并分支:无法对二进制文件或存储最新版本的文件执行合并

发布于 2024-09-12 05:24:44 字数 587 浏览 0 评论 0原文

也许我很笨,或者只是愚蠢。

但我被困在企业现场,VSS 是“选项”。

所以我必须对我的代码进行分支,这相当简单。

然而,当需要合并回 VSS 的主线时,事情就变得棘手了。

首先,我无法按项目合并,甚至无法按文件夹合并,而只能按文件合并。

然后我尝试了推荐的命令行: ss merge $/root/project/project/folder/.

这产生了以下错误:

“您无法对二进制文件或存储的文件执行合并最新版本 ?

搜索此错误消息会产生大量有关 cvs、subversion 和 git 的信息。

这是因为该句子中的单词已在其他帖子的文本中使用。

有人认为此错误与两种“模式”有关吗 ' VSS 可以工作吗?

我的意思是,Lock-Modify-Unlock 和 Copy-Modify-Merge 在这里有区别吗?

在任何情况下,当我尝试合并时,我最好使用 diff 实用程序,然后检查更改。从一个“分支”到另一个“分支”,因为合并和分支不会在文件中产生必要的修改以保持版本一致,

谢谢,

Stato。

Maybe I'm dumb, or just stupid.

But I'm stuck on-site in an enterprise where VSS is the 'option'.

So i had to branch my code, which was reasonbly easy.

However when it came time to merge back into the main line in VSS, things got screwy.

First, i couldn't merge by project, or even by folder but only file-by-file.

Then I tried the recommended command line: ss merge $/root/project/project/folder/.

That produced the following error:

"You cannot perform a merge on a binary file, or a file that stores latest versio
n only."

Searching on this error message produces a lot of info about cvs, subversion and git.

That's because the words in that sentence are used in the text of those other posts.

Does anyone think that this error is about the two 'modes' that VSS will work in?

I mean, does Lock-Modify-Unlock and Copy-Modify-Merge make a difference here?

In any case, when I try to merge i might as well use a diff utility and then check in the changes from one 'branch' to the other because merge and branch do not produce the necessary modifications in the files to keep the versions straight.

Thanks,

Stato

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

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

发布评论

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

评论(2

七色彩虹 2024-09-19 05:24:44

正如错误消息所示,您正在尝试对二进制文件或设置为仅存储最新版本的文件执行合并。

这应该和模式无关。

As the error message indicates, you are trying to perform Merge either on a binary file or a file that set to store only the latest version.

This should have nothing to do with the mode.

可可 2024-09-19 05:24:44

我意识到这是一篇非常旧的帖子,但是谷歌搜索将我带到了这里,所以我正在回答这个问题,以防其他人也偶然发现这个页面。我试图合并 sql 文件并收到此错误。事实证明,vss 文件的属性中有一个可以更改的设置。不知何故,我的文件被设置为二进制。我右键单击vss中的文件,选择属性并将属性更改为原始文件和分支版本中的文本,然后能够成功合并。

I realize this is a super old post, but a google search led me here so I am answering the question in case someone else stumbles upon this page too. I was trying to merge a sql file and was getting this error. Turns out there is a setting in the properties of the vss file that can be changed. Somehow my file was set to binary. I right clicked the file in vss, selected properties and changed the property to text in the original file and the branched version and was able to successfully merge after that.

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