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()
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()
def _(self, *args, **kwargs): log.info('Processing %s' % self.shortname) return func(self, *args, **kwargs)
def fetch(self): for remote in self.remotes(): log.info('Fetching %s' % remote) self.git('fetch', remote) self.git('fetch', '--tags', remote)
def remotes(self): log.info('Retreiving list of remotes') return self.shell('git', 'remote').split
def fetch(self): log.info('Fetching updates.') self.shell('git', 'remote', 'update', '--prune')
def remotes(self): log.info("Retreiving list of remotes") return self.shell("git", "remote").split
def fetch(self): log.info("Fetching updates.") self.shell("git", "remote", "update", "--prune")