Show More
@@ -63,6 +63,13 b' command = registrar.command(cmdtable)' | |||||
63 | # leave the attribute unspecified. |
|
63 | # leave the attribute unspecified. | |
64 | testedwith = 'ships-with-hg-core' |
|
64 | testedwith = 'ships-with-hg-core' | |
65 |
|
65 | |||
|
66 | configtable = {} | |||
|
67 | configitem = registrar.configitem(configtable) | |||
|
68 | ||||
|
69 | configitem('share', 'pool', | |||
|
70 | default=None, | |||
|
71 | ) | |||
|
72 | ||||
66 | @command('share', |
|
73 | @command('share', | |
67 | [('U', 'noupdate', None, _('do not create a working directory')), |
|
74 | [('U', 'noupdate', None, _('do not create a working directory')), | |
68 | ('B', 'bookmarks', None, _('also share bookmarks')), |
|
75 | ('B', 'bookmarks', None, _('also share bookmarks')), | |
@@ -128,7 +135,7 b' def unshare(ui, repo):' | |||||
128 |
|
135 | |||
129 | # Wrap clone command to pass auto share options. |
|
136 | # Wrap clone command to pass auto share options. | |
130 | def clone(orig, ui, source, *args, **opts): |
|
137 | def clone(orig, ui, source, *args, **opts): | |
131 |
pool = ui.config('share', 'pool' |
|
138 | pool = ui.config('share', 'pool') | |
132 | if pool: |
|
139 | if pool: | |
133 | pool = util.expandpath(pool) |
|
140 | pool = util.expandpath(pool) | |
134 |
|
141 |
General Comments 0
You need to be logged in to leave comments.
Login now