Show More
@@ -153,6 +153,7 b' def extsetup(ui):' | |||||
153 | ) |
|
153 | ) | |
154 |
|
154 | |||
155 | wrapfunction(hg, 'clone', wrapper.hgclone) |
|
155 | wrapfunction(hg, 'clone', wrapper.hgclone) | |
|
156 | wrapfunction(hg, 'postshare', wrapper.hgpostshare) | |||
156 |
|
157 | |||
157 | # Make bundle choose changegroup3 instead of changegroup2. This affects |
|
158 | # Make bundle choose changegroup3 instead of changegroup2. This affects | |
158 | # "hg bundle" command. Note: it does not cover all bundle formats like |
|
159 | # "hg bundle" command. Note: it does not cover all bundle formats like |
@@ -221,6 +221,14 b' def hgclone(orig, ui, opts, *args, **kwa' | |||||
221 |
|
221 | |||
222 | return result |
|
222 | return result | |
223 |
|
223 | |||
|
224 | def hgpostshare(orig, sourcerepo, destrepo, bookmarks=True, defaultpath=None): | |||
|
225 | orig(sourcerepo, destrepo, bookmarks, defaultpath) | |||
|
226 | ||||
|
227 | # If lfs is required for this repo, permanently enable it locally | |||
|
228 | if 'lfs' in destrepo.requirements: | |||
|
229 | with destrepo.vfs('hgrc', 'a', text=True) as fp: | |||
|
230 | fp.write('\n[extensions]\nlfs=\n') | |||
|
231 | ||||
224 | def _canskipupload(repo): |
|
232 | def _canskipupload(repo): | |
225 | # if remotestore is a null store, upload is a no-op and can be skipped |
|
233 | # if remotestore is a null store, upload is a no-op and can be skipped | |
226 | return isinstance(repo.svfs.lfsremoteblobstore, blobstore._nullremote) |
|
234 | return isinstance(repo.svfs.lfsremoteblobstore, blobstore._nullremote) |
@@ -208,6 +208,12 b'' | |||||
208 |
|
208 | |||
209 | $ cd .. |
|
209 | $ cd .. | |
210 |
|
210 | |||
|
211 | $ hg --config extensions.share= share repo7 sharedrepo | |||
|
212 | updating working directory | |||
|
213 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
214 | $ hg -R sharedrepo config extensions --debug | grep lfs | |||
|
215 | $TESTTMP/sharedrepo/.hg/hgrc:*: extensions.lfs= (glob) | |||
|
216 | ||||
211 | # Test rename and status |
|
217 | # Test rename and status | |
212 |
|
218 | |||
213 | $ hg init repo8 |
|
219 | $ hg init repo8 |
General Comments 0
You need to be logged in to leave comments.
Login now