Exemplo n.º 1
0
 def test_gitflow_status_on_cloned_sample_repo(self):
     gitflow = GitFlow(self.repo)
     # NB: only the active branch is created locally when cloning
     self.assertEqual(self.remote.active_branch.name, 'feat/recursion')
     self.assertItemsEqual([
             ('feat/recursion', '54d59c872469c7bf34d540d2fb3128a97502b73f', True),
         ], gitflow.status())
Exemplo n.º 2
0
 def test_gitflow_status_on_cloned_sample_repo(self):
     gitflow = GitFlow(self.repo)
     # NB: only the active branch is created locally when cloning
     self.assertEqual(self.remote.active_branch.name, 'feat/recursion')
     self.assertItemsEqual([
         ('feat/recursion', '54d59c872469c7bf34d540d2fb3128a97502b73f',
          True),
     ], gitflow.status())
Exemplo n.º 3
0
 def test_gitflow_status_on_remote_sample_repo(self):
     gitflow = GitFlow(self.remote)
     self.assertItemsEqual([
             ('stable', '296586bb164c946cad10d37e82570f60e6348df9', False),
             ('devel', '2b34cd2e1617e5f0d4e077c6ec092b9f50ed49a3', False),
             ('feat/recursion', '54d59c872469c7bf34d540d2fb3128a97502b73f', True),
             ('feat/even', 'e56be18dada9e81ca7969760ddea357b0c4c9412', False),
         ], gitflow.status())
Exemplo n.º 4
0
 def run(args):
     gitflow = GitFlow()
     for name, hexsha, is_active_branch in gitflow.status():
         if is_active_branch:
             prefix = '*'
         else:
             prefix = ' '
         info('%s %s: %s' % (prefix, name, hexsha[:7]))
Exemplo n.º 5
0
 def run(args):
     gitflow = GitFlow()
     for name, hexsha, is_active_branch in gitflow.status():
         if is_active_branch:
             prefix = '*'
         else:
             prefix = ' '
         info('%s %s: %s' % (prefix, name, hexsha[:7]))
Exemplo n.º 6
0
 def test_gitflow_status_on_remote_sample_repo(self):
     gitflow = GitFlow(self.remote)
     self.assertItemsEqual([
         ('stable', '296586bb164c946cad10d37e82570f60e6348df9', False),
         ('devel', '2b34cd2e1617e5f0d4e077c6ec092b9f50ed49a3', False),
         ('feat/recursion', '54d59c872469c7bf34d540d2fb3128a97502b73f',
          True),
         ('feat/even', 'e56be18dada9e81ca7969760ddea357b0c4c9412', False),
     ], gitflow.status())
Exemplo n.º 7
0
 def test_gitflow_status_on_fresh_repo(self):
     repo = create_git_repo(self)
     gitflow = GitFlow(repo)
     self.assertEquals([], gitflow.status())
Exemplo n.º 8
0
 def test_gitflow_status_on_fresh_repo(self):
     repo = create_git_repo(self)
     gitflow = GitFlow(repo)
     self.assertEquals([], gitflow.status())