首页 \ 问答 \ 在多个开发人员之间使用Trunk / Branches和Tag结构(Using Trunk / Branches and Tag structure between multiple developers)

在多个开发人员之间使用Trunk / Branches和Tag结构(Using Trunk / Branches and Tag structure between multiple developers)

当涉及到Trunk / Branches和Tags时,我最终会感到困惑。 以下是我的查询:

我们有一个开发团队在一个项目上工作。 开发人员通常分组,他们在同一个项目上处理各种模块。

目前,我们有一个简单的SVN系统(没有任何Trunk / Branches或Tags),每个人都在同一个本地服务器上工作并提交文件。 但问题出现的时候,有几个开发人员在研究未来的模块(不应该立即上线)。 在这种情况下,他们无法提交数据,因为如果他们这样做,他们的开发代码将上传到实时服务器上,最终会弄乱一切。

所以,现在我正在寻找某种解决方案,这些开发人员可以单独工作但是使用相同的代码。 像这样的东西:

开发人员A正在开发新模块A开发人员B正在开发新模块B开发人员C正在开发模块C的漏洞修复(已经在线,但很少有错误需要修复)

因此,开发人员A将在此计算机上拥有自己的副本,并将提交到Developer A的存储库。 (或分支)

同样的逻辑适用于开发人员B,但开发人员C将处理一个常见的稳定副本,该副本将位于标签中,一旦工作完成,它将被标记并推送到主干服务器上传的主干。

一旦开发人员A完成了工作,他就会将所有文件推送到Trunk进行实时上传。 (这也应该合并trunk中的一些常见文件)。 同样的逻辑适用于Developer B.

我不确定SVN是否适合这个解决方案。 我甚至不知道是否有更简单的方法来实现我想要的东西。

欢迎提出任何建议。

谢谢TTR


I end up getting confused when it comes to Trunk / Branches and Tags. Following is my query:

We have a team of developers working on a single project. The developers are often divided in groups and they work on various modules on the same project.

Currently, we have a simple SVN system (without any Trunk / Branches or Tags) where everyone works on the same local server and commits the files. But the problem starts when, a couple of developers work on future modules (which are not supposed to go live immediately). In this situation, they cannot commit the data because if they do, their development code will be uploaded on the live server and it will end up messing up everything.

So, now I am looking for some kind of solution where, these developers can work separately but on the same code. Something like this:

Developer A is working on New Module A Developer B is working on New Module B Developer C is working on Bug Fixes of Module C (which is already on live but few bugs needs to be fixed)

So, Developer A will have it's own copy on this machine and will commit to Developer A's repository. (Or Branch)

The same logic applies to Developer B but Developer C will be working on a common stable copy which will be somewhere in Tags and once the work is done, it will be tagged and pushed to the Trunk for the upload on live server.

Once Developer A is done with the work, he will push all his files to Trunk for live upload. (This should merge some common files in trunk too). Same logic applies to Developer B.

I am not sure if SVN will be the right solution for this or not. I don't even know if there is any simpler way to implement what I want.

Any kind of suggestions are welcome.

Thanks TTR


原文:https://stackoverflow.com/questions/4584379
更新时间:2023-11-23 20:11

最满意答案

将文件放在src/test/resources某个位置,比如src/test/resources/xmlfiles ; 这将导致Maven自动将这些镜像到target/test-classes 。 然后你可以按照James Lorenzen的描述消费它们:

URL path = this.getClass().getResource("/xmlfiles");
File xmlfileDir = new File(url.getFile());
for (File f : xmlfileDir.listFiles(new ...Filter())) {
    ....
}

不需要POM更改。


Place the files somewhere in src/test/resources, say src/test/resources/xmlfiles; this will cause Maven to automatically mirror these into target/test-classes. Then you can consume them as described by James Lorenzen:

URL path = this.getClass().getResource("/xmlfiles");
File xmlfileDir = new File(url.getFile());
for (File f : xmlfileDir.listFiles(new ...Filter())) {
    ....
}

No POM changes should be necessary.

相关问答

更多

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。