Mercurial > code > home > repos > reposync
changeset 8:cc3321b8adc1
fix silly case
author | drewp@bigasterisk.com |
---|---|
date | Fri, 16 Jul 2021 00:18:34 -0700 |
parents | 7f479502a8ab |
children | 2c4d383d464c |
files | sync.py sync_to_github.py |
diffstat | 2 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/sync.py Fri Jul 16 00:05:25 2021 -0700 +++ b/sync.py Fri Jul 16 00:18:34 2021 -0700 @@ -45,7 +45,7 @@ log.error("in %s" % self.gitDir()) raise - def makeGitHubRepo(self): + def makeGithubRepo(self): try: self.gh.create_repo(self.name) except GithubException as e: @@ -56,10 +56,10 @@ 'git@github.com:%s/%s.git' % (self.gh.login, self.name)]) - def pushToGitHub(self): + def pushToGithub(self): self.runGitCommand(['git', 'push', 'origin', 'master']) - def hgToGitHub(self): + def hgToGithub(self): subprocess.check_call(['hg', 'bookmark', '-r', 'default', 'main'], cwd=self.projRoot) subprocess.check_call(['hg', 'push', @@ -99,7 +99,7 @@ log.info("syncing %s", proj) p.syncToLocalGit() - p.makeGitHubRepo() - p.pushToGitHub() + p.makeGithubRepo() + p.pushToGithub() except Exception as e: traceback.print_exc()