# HG changeset patch # User drewp@bigasterisk.com # Date 1626419914 25200 # Node ID cc3321b8adc16554091fad78522a9de13a90ae68 # Parent 7f479502a8ab78f59ce173637328f85b656936a5 fix silly case diff -r 7f479502a8ab -r cc3321b8adc1 sync.py --- 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() diff -r 7f479502a8ab -r cc3321b8adc1 sync_to_github.py --- a/sync_to_github.py Fri Jul 16 00:05:25 2021 -0700 +++ b/sync_to_github.py Fri Jul 16 00:18:34 2021 -0700 @@ -14,5 +14,5 @@ gh = Github(config['gitHubToken']).get_user() p = Project(config, gh, Path('.').absolute()) -p.makeGitHubRepo() -p.hgToGitHub() +p.makeGithubRepo() +p.hgToGithub()