Mercurial > hg > config
comparison python/install_config.py @ 886:8a86595a6f9c
python3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 24 Apr 2021 14:21:07 -0700 |
parents | e641fdf325bb |
children | d6cce2e5cca6 |
comparison
equal
deleted
inserted
replaced
885:6df7507e6338 | 886:8a86595a6f9c |
---|---|
116 | 116 |
117 hgrc = """[paths] | 117 hgrc = """[paths] |
118 default = http://k0s.org/hg/config | 118 default = http://k0s.org/hg/config |
119 default-push = ssh://k0s.org/hg/config | 119 default-push = ssh://k0s.org/hg/config |
120 """ | 120 """ |
121 with file('.hg/hgrc', 'w') as f: | 121 with open('.hg/hgrc', 'w') as f: |
122 f.write(hgrc) | 122 f.write(hgrc) |
123 | 123 |
124 def __call__(self): | 124 def __call__(self): |
125 Step.__call__(self) | 125 Step.__call__(self) |
126 self.write_hgrc() | 126 self.write_hgrc() |