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
最满意答案
它看起来像变量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); [...] }
相关问答
更多-
JLabel中的SetLocation(SetLocation in JLabel)[2021-11-26]
JPanel ,但默认情况下,正在使用LayoutManager ,通常我会劝阻你不要试图去做它,但在你的情况下,你可能没有选择。 通常情况下,我会考虑写一个可以解决这个问题的布局管理器,但这超出了需求的范围。 相反,首先将panel的布局管理器设置为null JFrame frame = new JFrame(); JPanel panel = new JPanel(null); 现在你已经完成了这个任务,你完全负责组件的管理,关于组件的大小和位置,所以,当mouseClicked被调用时,你需要设置标 ... -
Java - 在extern函数中更改JLabel Frontcolor(Java - Changing JLabel Frontcolor in extern function)[2023-04-26]
它看起来像变量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 ... -
JLabel正在消失(JLabel is disappearing)[2024-01-03]
我建议你将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 ... -
用Java移动JLabel(Moving JLabel in Java)[2023-12-20]
你正在一个线程中执行一个无限循环。 new what();时候new what(); 被创建,循环开始并且永不结束。 像这样c.setVisible(true); 永远不会到达。 您将需要为此循环运行创建一个单独的线程。您可以创建以下类; public class Infout implements Runnable{ private JFrame frame; private JLabel image; private Random s = new Random(); ... -
Java帮助:JLabel(Java help: JLabel's)[2022-11-30]
通过为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 ... -
JLabel没有出现(JLabel doesnt appear)[2021-09-30]
在添加所有组件之前,您正在调用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 ... -
JLabel,GridLayout(JLabel, GridLayout)[2023-11-06]
在这里疯狂猜测,但我想你想要的东西: 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 ... -
JLabel改变了它自己(JLabel changing on it's own)[2022-03-27]
默认情况下, 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); } 现在您只需要使用您想要更改的参数调用此方法 ...
-
JLabel和Image?(JLabel with Image?)[2022-02-20]
首先看一下如何使用标签和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 ...