Beispiel #1
0
 def __init__(self, *args, **kwargs):
     super(Branch, self).__init__(*args, **kwargs)
     self.parent_refspec = self.repo.branch_parents.get(self.refspec, self.refspec)
     log.info('Processing %s' % self.shortname)
     # TODO: find a better way to determine parent refspec
     # Find the common merge ancestor to show ahead/behind statistics.
     self.merge_refspec = None
     if self.repo.master_sha:
         merge_refspec = self.repo.git('merge-base', self.repo.master_sha, self.sha, split=True)
         if merge_refspec:
             self.merge_refspec = merge_refspec[0].strip()
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     super(Branch, self).__init__(*args, **kwargs)
     self.parent_refspec = self.repo.branch_parents.get(self.refspec, self.refspec)
     log.info('Processing %s' % self.shortname)
     # TODO: find a better way to determine parent refspec
     # Find the common merge ancestor to show ahead/behind statistics.
     self.merge_refspec = None
     if self.repo.master_sha:
         merge_refspec = self.repo.shell('git', 'merge-base', self.repo.master_sha, self.sha).split
         if merge_refspec:
             self.merge_refspec = merge_refspec[0].strip()
Beispiel #3
0
 def _(self, *args, **kwargs):
     log.info('Processing %s' % self.shortname)
     return func(self, *args, **kwargs)
Beispiel #4
0
 def fetch(self):
     for remote in self.remotes():
         log.info('Fetching %s' % remote)
         self.git('fetch', remote)
         self.git('fetch', '--tags', remote)
Beispiel #5
0
 def _(self, *args, **kwargs):
     log.info('Processing %s' % self.shortname)
     return func(self, *args, **kwargs)
Beispiel #6
0
 def remotes(self):
     log.info('Retreiving list of remotes')
     return self.shell('git', 'remote').split
Beispiel #7
0
 def fetch(self):
     log.info('Fetching updates.')
     self.shell('git', 'remote', 'update', '--prune')
Beispiel #8
0
 def remotes(self):
     log.info("Retreiving list of remotes")
     return self.shell("git", "remote").split
Beispiel #9
0
 def fetch(self):
     log.info("Fetching updates.")
     self.shell("git", "remote", "update", "--prune")
Beispiel #10
0
 def remotes(self):
     log.info('Retreiving list of remotes')
     return self.shell('git', 'remote').split
Beispiel #11
0
 def fetch(self):
     log.info('Fetching updates.')
     self.shell('git', 'remote', 'update', '--prune')