def testMergeMessageWithArguments(self):
     builder = DefaultCommitMessageBuilder()
     self.assertTrue('foo' in str(builder.merge(other_branch='foo')))
     message = str(builder.merge(local_branch='foo',
                                 local_revision='fabada',
                                 other_branch='bar',
                                 other_revision='deadbeef'))
     self.assertTrue('foo' in message)
     self.assertTrue('fabada' in message)
     self.assertTrue('bar' in message)
     self.assertTrue('deadbeef' in message)
Beispiel #2
0
 def testMergeMessageWithArguments(self):
     builder = DefaultCommitMessageBuilder()
     self.assertTrue('foo' in str(builder.merge(other_branch='foo')))
     message = str(builder.merge(local_branch='foo',
                                 local_revision='fabada',
                                 other_branch='bar',
                                 other_revision='deadbeef'))
     self.assertTrue('foo' in message)
     self.assertTrue('fabada' in message)
     self.assertTrue('bar' in message)
     self.assertTrue('deadbeef' in message)
Beispiel #3
0
 def __init__(self,
              repo_path,
              repo_indexer=None,
              message_builder=None,
              signature=None):
     self.path = repo_path
     self._repo_indexer = repo_indexer
     self.message_builder = message_builder or DefaultCommitMessageBuilder()
     self._signature = signature
 def testMergeMessage(self):
     builder = DefaultCommitMessageBuilder()
     self.assertTrue(bool(str(builder.merge())))
 def testCloseBranchMessage(self):
     builder = DefaultCommitMessageBuilder()
     str(builder.close_branch(branch='foo'))
Beispiel #6
0
 def testMergeMessage(self):
     builder = DefaultCommitMessageBuilder()
     self.assertTrue(bool(str(builder.merge())))
Beispiel #7
0
 def testCloseBranchMessage(self):
     builder = DefaultCommitMessageBuilder()
     str(builder.close_branch(branch='foo'))