首页 \ 问答 \ SVN分支到Trunk合并问题(SVN Branch To Trunk Merge Issue)

SVN分支到Trunk合并问题(SVN Branch To Trunk Merge Issue)

我试过谷歌搜索手头的问题,但无济于事。 我的团队处于一个有趣的境地。

我们的发布分支需要合并回我们的主干。 提交约4周后,没有人这样做(我们通常每周尝试一次)。 然后,开发人员将分支合并到主干,但只进行了一系列不包含分支的所有修订的修订。

示例:我们在提交1000处创建了分支。提交1000-1400全部在第一次合并之前发生。 开发人员合并提交1300-1400。 一直以来,也有提交到行李箱的承诺。

又过了一两个星期,现在我们要承诺1500.我们去做另一次合并,当然,这一切都爆发了; 我们没有大量的提交需要通过(提交1000-1300)。 我们无法完全恢复,因为我们有可能破坏整个时间段内对主干所做的所有更改。

我们有什么选择? 这是一个关键的合并,因为我们的主要版本即将推出; 我们需要在相对较短的时间内尽可能减少弄乱某些事情的机会。


I have tried Googling the issue at hand, to no avail. My team is in an interesting situation.

Our release branch needed to be merged back into our trunk. After about 4 weeks of commits, no one had done so (we usually try to do it once a week). A developer then merged the branch to the trunk, but only did a range of revisions that did NOT include all of the revisions to the branch.

Example: we created the branch at commit 1000. Commits 1000-1400 all happened before the first merge. The developer merged commits 1300-1400. All the while, there have been commits to trunk as well.

Another week or two passed, and now we're up to commit 1500. We go to do another merge and of course, it all blows up; we don't have a ton of commits needed for the builds to pass (commits 1000-1300). We can't exactly revert, because we risk ruining all of the changes made to trunk during this whole time.

What are our options? This is a critical merge as our major release is soon; we need to reduce the chance for messing something up as much as possible in a relatively small amount of time.


原文:https://stackoverflow.com/questions/28206243
更新时间:2022-04-17 06:04

最满意答案

它看起来像变量l1和l2只在initialize方法中退出。 尝试这个:

public void allblack() {
    l1.setForeground(Color.black);
    l2.setForeground(Color.black);
}

private JLabel l1,l2;
public void initialize() {

    frmDasLeiterspiel = new JFrame();
    frmDasLeiterspiel.setResizable(false);
    frmDasLeiterspiel.setTitle("Das Leiterspiel");
    frmDasLeiterspiel.setBounds(100, 100, 420, 420);
    frmDasLeiterspiel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frmDasLeiterspiel.getContentPane().setLayout(null);

    l1 = new JLabel("1");
    l1.setBackground(Color.LIGHT_GRAY);
    l1.setBounds(340, 190, 50, 50);
    l1.setHorizontalAlignment(SwingConstants.CENTER);
    frmDasLeiterspiel.getContentPane().add(l1, BorderLayout.CENTER);

    l2 = new JLabel("2");
    l2.setBackground(Color.LIGHT_GRAY);
    l2.setHorizontalAlignment(SwingConstants.CENTER);
    l2.setBounds(278, 190, 50, 50);
    frmDasLeiterspiel.getContentPane().add(l2);
    [....]
    JButton btnNewButton = new JButton("Roll the dice!");
    btnNewButton.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent arg0) {
            allblack();
        }
    });
    btnNewButton.setBounds(12, 294, 378, 25);
    frmDasLeiterspiel.getContentPane().add(btnNewButton);
    [...]
    }

it looks like the variables l1 and l2 only exitst in the initialize method. try this:

public void allblack() {
    l1.setForeground(Color.black);
    l2.setForeground(Color.black);
}

private JLabel l1,l2;
public void initialize() {

    frmDasLeiterspiel = new JFrame();
    frmDasLeiterspiel.setResizable(false);
    frmDasLeiterspiel.setTitle("Das Leiterspiel");
    frmDasLeiterspiel.setBounds(100, 100, 420, 420);
    frmDasLeiterspiel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frmDasLeiterspiel.getContentPane().setLayout(null);

    l1 = new JLabel("1");
    l1.setBackground(Color.LIGHT_GRAY);
    l1.setBounds(340, 190, 50, 50);
    l1.setHorizontalAlignment(SwingConstants.CENTER);
    frmDasLeiterspiel.getContentPane().add(l1, BorderLayout.CENTER);

    l2 = new JLabel("2");
    l2.setBackground(Color.LIGHT_GRAY);
    l2.setHorizontalAlignment(SwingConstants.CENTER);
    l2.setBounds(278, 190, 50, 50);
    frmDasLeiterspiel.getContentPane().add(l2);
    [....]
    JButton btnNewButton = new JButton("Roll the dice!");
    btnNewButton.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent arg0) {
            allblack();
        }
    });
    btnNewButton.setBounds(12, 294, 378, 25);
    frmDasLeiterspiel.getContentPane().add(btnNewButton);
    [...]
    }

相关问答

更多
  • JPanel ,但默认情况下,正在使用LayoutManager ,通常我会劝阻你不要试图去做它,但在你的情况下,你可能没有选择。 通常情况下,我会考虑写一个可以解决这个问题的布局管理器,但这超出了需求的范围。 相反,首先将panel的布局管理器设置为null JFrame frame = new JFrame(); JPanel panel = new JPanel(null); 现在你已经完成了这个任务,你完全负责组件的管理,关于组件的大小和位置,所以,当mouseClicked被调用时,你需要设置标 ...
  • 它看起来像变量l1和l2只在initialize方法中退出。 尝试这个: public void allblack() { l1.setForeground(Color.black); l2.setForeground(Color.black); } private JLabel l1,l2; public void initialize() { frmDasLeiterspiel = new JFrame(); frmDasLeiterspiel.setResizabl ...
  • 我建议你将Button btnNewButton更改为JButton ,然后添加: btnNewButton.add(lblNewLabel_1); // or lblNewLabel, 你可以修改它。 I suggest you change your Button btnNewButton to JButton, and just add: btnNewButton.add(lblNewLabel_1); // or lblNewLabel, and you would be able to m ...
  • 你正在一个线程中执行一个无限循环。 new what();时候new what(); 被创建,循环开始并且永不结束。 像这样c.setVisible(true); 永远不会到达。 您将需要为此循环运行创建一个单独的线程。您可以创建以下类; public class Infout implements Runnable{ private JFrame frame; private JLabel image; private Random s = new Random(); ...
  • 通过为JFrame指定不同的布局到FlowLayout() BorderLayout ,可以实现所需的结果,例如, setLayout (new BorderLayout()); // asign layout to JFrame add(label1,BorderLayout.PAGE_START); //Add JLabel 1 to Jframe add(label2,BorderLayout.CENTER); //Add JLabel 2 to Jframe name = new JLabe ...
  • 在添加所有组件之前,您正在调用setVisible(true) 。 不要这样做。 该orde是: 添加您的组件 呼叫pack() 调用setVisible(true) 如果稍后你做了更改,那么在容器上调用revalidate() ,然后repaint() You're calling setVisible(true) before adding all your components. Don't do this. The orde is: add your components call pack() c ...
  • 在这里疯狂猜测,但我想你想要的东西: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Gui extends JFrame { private JFrame window = new JFrame(); private JButton but[] = new JButton[9]; public Gui() { window.setSize(300 ...
  • 默认情况下, Timer 开始重复 。 所以,你的计时器每一秒都在燃烧,永远。 你应该调用setRepeats(false) : void doLater(ActionListener action, int delay) { Timer timer = new Timer(delay, action); timer.setRepeats(false); timer.start(); } A Timer starts out repeating, by default. So, your ...
  • 我觉得这应该有用...... private void yourMethodName(final String newLabelText) { one.setText(newLabelText); } 如果你想使用这种方法通用... private void yourMethodName(final JLabel label, final String newLabelText) { label.setText(newLabelText); } 现在您只需要使用您想要更改的参数调用此方法 ...
  • 首先看一下如何使用标签和JavaDocs来实现`javax.swing.JLabel 基本上,你有很多选择。 您可以使用 JLabel label = new JLabel("This is an Icon", icon, JLabel.CENTER); 您可以使用 JLabel label = new JLabel(); label.setText("This is an icon"); label.setIcon(icon); 您可以使用 JLabel label = new JLabel("Thi ...

相关文章

更多

最新问答

更多
  • 获取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的基本操作命令。。。