annotate sync_to_github.py @ 9:2c4d383d464c

move config stuff into Project
author drewp@bigasterisk.com
date Fri, 16 Jul 2021 00:19:01 -0700
parents cc3321b8adc1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
1 #!/usr/bin/python3
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
2 from pathlib import Path
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
3
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
4 from sync import Project, getSshAuthSock
7f479502a8ab wip sync_to_github (from hg)
drewp@bigasterisk.com
parents:
diff changeset
5
9
2c4d383d464c move config stuff into Project
drewp@bigasterisk.com
parents: 8
diff changeset
6 p = Project(Path('.').absolute())
8
cc3321b8adc1 fix silly case
drewp@bigasterisk.com
parents: 7
diff changeset
7 p.makeGithubRepo()
cc3321b8adc1 fix silly case
drewp@bigasterisk.com
parents: 7
diff changeset
8 p.hgToGithub()