Show More
@@ -1853,7 +1853,7 b' def upgraderequirements(orig, repo):' | |||||
1853 |
|
1853 | |||
1854 |
|
1854 | |||
1855 | @eh.wrapfunction(urlmod, b'open') |
|
1855 | @eh.wrapfunction(urlmod, b'open') | |
1856 | def openlargefile(orig, ui, url_, data=None): |
|
1856 | def openlargefile(orig, ui, url_, data=None, **kwargs): | |
1857 | if url_.startswith(_lfscheme): |
|
1857 | if url_.startswith(_lfscheme): | |
1858 | if data: |
|
1858 | if data: | |
1859 | msg = b"cannot use data on a 'largefile://' url" |
|
1859 | msg = b"cannot use data on a 'largefile://' url" | |
@@ -1861,4 +1861,4 b' def openlargefile(orig, ui, url_, data=N' | |||||
1861 | lfid = url_[len(_lfscheme) :] |
|
1861 | lfid = url_[len(_lfscheme) :] | |
1862 | return storefactory.getlfile(ui, lfid) |
|
1862 | return storefactory.getlfile(ui, lfid) | |
1863 | else: |
|
1863 | else: | |
1864 | return orig(ui, url_, data=data) |
|
1864 | return orig(ui, url_, data=data, **kwargs) |
@@ -1138,6 +1138,21 b' test import rev as raw-rev' | |||||
1138 | $ cd test1 |
|
1138 | $ cd test1 | |
1139 | $ hg import -q --bypass --exact http://localhost:$HGPORT/rev/1 |
|
1139 | $ hg import -q --bypass --exact http://localhost:$HGPORT/rev/1 | |
1140 |
|
1140 | |||
|
1141 | repeat test above, with largefiles enabled | |||
|
1142 | ||||
|
1143 | $ cd .. | |||
|
1144 | $ rm -r test1 | |||
|
1145 | $ hg clone -r0 test test1 | |||
|
1146 | adding changesets | |||
|
1147 | adding manifests | |||
|
1148 | adding file changes | |||
|
1149 | added 1 changesets with 2 changes to 2 files | |||
|
1150 | new changesets 0cd96de13884 | |||
|
1151 | updating to branch default | |||
|
1152 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
1153 | $ cd test1 | |||
|
1154 | $ hg import --config extensions.largefiles= -q --bypass --exact http://localhost:$HGPORT/rev/1 | |||
|
1155 | ||||
1141 | raw revision with diff block numbers |
|
1156 | raw revision with diff block numbers | |
1142 |
|
1157 | |||
1143 | $ killdaemons.py |
|
1158 | $ killdaemons.py |
General Comments 0
You need to be logged in to leave comments.
Login now