如何使用不同的java包名称创建perforce分支? [英] How to make a perforce branch with a different java package name?

查看:53
本文介绍了如何使用不同的java包名称创建perforce分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的第一直觉是正常分支(使用p4集成),然后使用IDE或sed脚本更改包名称.但这使得从主干的未来集成非常痛苦.

My first instinct is to branch normally (using p4 integrate), and then use an IDE or sed script to change the package names. But this makes future integration from the trunk extremely painful.

推荐答案

你建议的方式会很好用,你应该期待 Perforce 不会出现问题.

The way you suggest would work just fine, and you should expect no troubles from Perforce.

但是,我可以添加以下建议-
首先进行集成,然后提交 - 只有在第二次提交时才更改实际名称.这样可以更清楚地看到历史中的变化,而不需要在分支之间进行比较.

However, I can add the following suggestion -
First do the integration followed by commit - and only as a second commit change the actual names. This would allow seeing the changes in the history much more clearly, not requiring comparison between branches.

如果更改需要重命名文件,它可能会这样做 -

If the change requires renaming files, which it probably does -

  • 您会在那里让分支处于未编译状态一分钟.对于您获得的可见性,这是​​可以接受的权衡.
  • 您可能希望创建一个分支规范来反映两个分支之间的重命名.这将使集成更容易.

这篇关于如何使用不同的java包名称创建perforce分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆