Show More
@@ -146,13 +146,14 b' def share(ui, source, dest=None, update=' | |||||
146 | file(os.path.join(roothg, 'requires'), 'w').write(requirements) |
|
146 | file(os.path.join(roothg, 'requires'), 'w').write(requirements) | |
147 | file(os.path.join(roothg, 'sharedpath'), 'w').write(sharedpath) |
|
147 | file(os.path.join(roothg, 'sharedpath'), 'w').write(sharedpath) | |
148 |
|
148 | |||
|
149 | r = repository(ui, root) | |||
|
150 | ||||
149 | default = srcrepo.ui.config('paths', 'default') |
|
151 | default = srcrepo.ui.config('paths', 'default') | |
150 | if default: |
|
152 | if default: | |
151 | f = file(os.path.join(roothg, 'hgrc'), 'w') |
|
153 | fp = r.opener("hgrc", "w", text=True) | |
152 |
f.write( |
|
154 | fp.write("[paths]\n") | |
153 | f.close() |
|
155 | fp.write("default = %s\n" % default) | |
154 |
|
156 | fp.close() | ||
155 | r = repository(ui, root) |
|
|||
156 |
|
157 | |||
157 | if update: |
|
158 | if update: | |
158 | r.ui.status(_("updating working directory\n")) |
|
159 | r.ui.status(_("updating working directory\n")) |
General Comments 0
You need to be logged in to leave comments.
Login now