##// END OF EJS Templates
largefiles: check file in the repo store before checking remotely (issue5257)...
liscju -
r29421:ecbbf4d5 default
parent child Browse files
Show More
@@ -47,7 +47,10 b' class localstore(basestore.basestore):'
47 47 def _verifyfiles(self, contents, filestocheck):
48 48 failed = False
49 49 for cset, filename, expectedhash in filestocheck:
50 storepath, exists = lfutil.findstorepath(self.remote, expectedhash)
50 storepath, exists = lfutil.findstorepath(self.repo, expectedhash)
51 if not exists:
52 storepath, exists = lfutil.findstorepath(
53 self.remote, expectedhash)
51 54 if not exists:
52 55 self.ui.warn(
53 56 _('changeset %s: %s references missing %s\n')
@@ -149,6 +149,14 b' largefiles clients refuse to push largef'
149 149 $ hg commit -m "m2"
150 150 Invoking status precommit hook
151 151 A f2
152 $ hg verify --large
153 checking changesets
154 checking manifests
155 crosschecking files in changesets and manifests
156 checking files
157 2 files, 2 changesets, 2 total revisions
158 searching 1 changesets for largefiles
159 verified existence of 1 revisions of 1 largefiles
152 160 $ hg serve --config extensions.largefiles=! -R ../r6 -d -p $HGPORT --pid-file ../hg.pid
153 161 $ cat ../hg.pid >> $DAEMON_PIDS
154 162 $ hg push http://localhost:$HGPORT
@@ -1536,8 +1536,11 b' revert some files to an older revision'
1536 1536 searching 1 changesets for largefiles
1537 1537 verified existence of 3 revisions of 3 largefiles
1538 1538
1539 - introduce missing blob in local store repo and make sure that this is caught:
1539 - introduce missing blob in local store repo and remote store
1540 and make sure that this is caught:
1541
1540 1542 $ mv $TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928 .
1543 $ rm .hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928
1541 1544 $ hg verify --large
1542 1545 checking changesets
1543 1546 checking manifests
@@ -1556,7 +1559,8 b' revert some files to an older revision'
1556 1559 [1]
1557 1560
1558 1561 - cleanup
1559 $ mv e166e74c7303192238d60af5a9c4ce9bef0b7928 $TESTTMP/d/.hg/largefiles/
1562 $ cp e166e74c7303192238d60af5a9c4ce9bef0b7928 $TESTTMP/d/.hg/largefiles/
1563 $ mv e166e74c7303192238d60af5a9c4ce9bef0b7928 .hg/largefiles/
1560 1564
1561 1565 - verifying all revisions will fail because we didn't clone all largefiles to d:
1562 1566 $ echo 'T-shirt' > $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
General Comments 0
You need to be logged in to leave comments. Login now