Пример #1
0
 def test_gitflow_publish_creates_remote_branch(self):
     gitflow = GitFlow(self.repo).init()
     orig_stdout = sys.stdout
     sys.stdout = StringIO.StringIO()
     gitflow.diff('feature', 'recursion')
     diff = sys.stdout.getvalue()
     sys.stdout = orig_stdout
     difflines = diff.splitlines()
     matchlines = [
         'diff --git a/odd.py b/odd.py',
         'index 607a269..8a0c7ff 100644',
         '--- a/odd.py',
         '+++ b/odd.py',
     ]
     self.assertEqual(difflines[:len(matchlines)], matchlines)
Пример #2
0
 def test_gitflow_publish_creates_remote_branch(self):
     gitflow = GitFlow(self.repo).init()
     orig_stdout = sys.stdout
     sys.stdout = StringIO.StringIO()
     gitflow.diff('feature', 'recursion')
     diff = sys.stdout.getvalue()
     sys.stdout = orig_stdout
     difflines = diff.splitlines()
     matchlines = [
         'diff --git a/odd.py b/odd.py',
         'index 607a269..8a0c7ff 100644',
         '--- a/odd.py',
         '+++ b/odd.py',
         ]
     self.assertEqual(difflines[:len(matchlines)], matchlines)
Пример #3
0
 def run_diff(args):
     gitflow = GitFlow()
     name = gitflow.nameprefix_or_current('feature', args.nameprefix)
     gitflow.start_transaction('diff for feature branch %s' % name)
     gitflow.diff('feature', name)
Пример #4
0
 def run_diff(args):
     gitflow = GitFlow()
     name = gitflow.nameprefix_or_current('feature', args.nameprefix)
     gitflow.start_transaction('diff for feature branch %s' % name)
     gitflow.diff('feature', name)