将 Subversive ProjectSet 转换为 Subclipse

发布于 2024-11-01 20:14:16 字数 374 浏览 0 评论 0原文

我和一些同事一直在研究使用 Eclipse 在 SVN 中进行分支。到目前为止,我们一直在使用 Subversive,但未能获得一致的结果。有时我们会遇到冲突,有时不会,有时它只能看到一半文件的更改,等等。

我一直在尝试使用 Subclipse,并且得到了一致的结果,每次都完全按照我们想要的方式执行。切换到 Subclipse 的唯一障碍是我们目前使用 Subversive ProjectSets 来设置工作区。

我读到 Subversive 可以读取 Subclipse 生成的 ProjectsSets,但似乎反之则不然。有没有办法让使用 Subversive 创建的 ProjectSet 可用于 Subclipse?或者我们是否必须使用 Subclipse 重新创建 ProjectSet?

A few co-workers and I have been looking at branching in SVN using Eclipse. Until now, we've been using Subversive, but we haven't been able to get consistent results. Sometimes we'll get conflicts sometimes we won't, sometimes it only sees changes in half the files, etc.

I have been experimenting with Subclipse and have had consistent results that perform exactly the way we want every time. The only hold-up to switching to Subclipse is that we currently use Subversive ProjectSets to set up our workspaces.

I've read that Subversive can read ProjectsSets generated by Subclipse, but it seems the reverse isn't true. Is there a way to make ProjectSets created with Subversive available to Subclipse? Or would we have to re-create the ProjectSet with Subclipse?

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

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

发布评论

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

评论(1

深府石板幽径 2024-11-08 20:14:16

我也有同样的问题。我没有找到自动化的解决方案,但结构似乎足够简单,所以我只是在 subversive 生成​​的项目集上运行一些正则表达式,将其转换为 subclipse 样式之一。我必须做两件事:

  1. 更改提供商 ID
    来自

    
    

    ;
    
  2. 对于每个项目标签,我必须调整引用属性的一部分,该属性是逗号分隔值的列表。第一个逗号分隔值是某种版本号,我必须将其从 1.0.1 更改为 0.9.3,此外,我还必须删除前三个值之后的所有值即:

    来自

    <项目引用=“1.0.1,https://svnroot.url/projectfolder,项目名称,101067470c700010138cd5110c947ae0;https://svnroot.url/projectfolder;https://svnroot.url/projectfolder; ;;;假;cc4a8bc3-49ff-40c0-b9b6-f760b69cc066;https://svnroot;;假;;;0"/>
    

    <项目引用=“0.9.3,myurl/项目名称,项目名称”/>
    

我的正则表达式:
查找:<(.*?)".*?,(.*?,.*?),.*>
替换: <\1"0.9.3,\2"/>

工作集定义对我有用,无需进行任何调整。

I had the same problem. I did not find an automated solution but the structure seemed simple enough so I just ran some regexes over the project set generated by subversive to transform it into one of subclipse style. I had to do two things:

  1. Changing the provider ID
    from

    <provider id="org.eclipse.team.svn.core.svnnature">
    

    to

    <provider id="org.tigris.subversion.subclipse.core.svnnature">
    
  2. than for each project tag I had to adjust parts of the reference attribute which is a list of comma separated values. The first comma separated value was some kind of a version number I had to change from 1.0.1 to 0.9.3 and additionally I had to remove all values after the first three i.e.:

    from

    <project reference="1.0.1,https://svnroot.url/projectfolder,projectname,101067470c700010138cd5110c947ae0;https://svnroot.url/projectfolder;https://svnroot.url/projectfolder;;;;false;cc4a8bc3-49ff-40c0-b9b6-f760b69cc066;https://svnroot;;false;;;0"/>
    

    to

    <project reference="0.9.3,myurl/projectname,projectname"/>
    

My Regexes:
find: <(.*?)".*?,(.*?,.*?),.*>
replace: <\1"0.9.3,\2"/>

The working sets definition worked for me without the need to adjust something.

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