def startVC(self, branch, revision, patch): branch = self.getProperty('branch') if branch != 'PATCH_TRY' and branch != 'HG_TRY': self.repourl = self.baseURL + '/' + branch else: self.repourl = self.getProperty('mozillaRepoPath') Mercurial.startVC(self, None, revision, patch)
def __init__(self, baseURL="http://hg.mozilla.org/", defaultBranch='mozilla-central', **kwargs): timeout = 3600 if 'timeout' in kwargs: timeout = kwargs['timeout'] # repourl overridden in startVC Mercurial.__init__(self, baseURL=baseURL, defaultBranch=defaultBranch, timeout=timeout, **kwargs)
def __init__(self, locale, localesBranch, baseURL=None, **kwargs): if baseURL is not None: raise ValueError("baseURL must not be used with MercurialLocale") Mercurial.__init__(self, **kwargs) self.addFactoryArguments(locale=locale, localesBranch=localesBranch, baseURL=baseURL) self.locale = locale self.localesBranch = localesBranch
def startVC(self, branch, revision, patch): # if we're running a main tree and locales in the same tree, # we get a "branch" parameter here which doesn't have the locale # information which is encoded in repoURL. Strip it. Mercurial.startVC(self, None, revision, patch)
def startVC(self, branch, revision, patch): # strip out the "branch" which is fake... we always use a repourl Mercurial.startVC(self, None, revision, patch)
def __init__(self, mainBranch, **kwargs): Mercurial.__init__(self, **kwargs) self.addFactoryArguments(mainBranch=mainBranch) self.mainBranch = mainBranch
def commandComplete(self, cmd): self.step_status.locale = self.locale Mercurial.commandComplete(self, cmd)