While pushing a large repository to a server, we somehow ended up with corrupt files in the ~/.cache/largefiles folder on the server. We're unsure how that happened, but it might have been triggered by a full disk. We'll try to reproduce it later. This bug report is about the message given to a client that pushes to such a repository. It would be nice if we could tell a client that the server is in trouble, or if there would be something about it in the server log file: $ echo "[extensions]" >> $HGRCPATH $ echo "largefiles =" >> $HGRCPATH Create repositories: $ hg init test $ cd test $ echo foo > foo $ hg add --large foo $ hg commit -m foo Corrupt the largefile in ~/.cache/largefiles: $ echo foobar > ~/.cache/largefiles/f1d2d2f924e986ac86fdf7b36c94bcdf32beec15 Serve an empty repository and try pushing into it: $ hg init ../empty $ hg serve -R ../empty -p $HGPORT -d --pid-file=hg.pid -E errors.log \ > --config 'web.allow_push=*' --config web.push_ssl=False $ cat hg.pid >> $DAEMON_PIDS Try pushing: $ hg push http://localhost:$HGPORT/ pushing to http://localhost:$HGPORT/ searching for changes abort: remotestore: could not put $TESTTMP/test/.hg/largefiles/f1d2d2f924e986ac86fdf7b36c94bcdf32beec15 to remote store http://localhost:$HGPORT/ [255] Error log: $ cat errors.log
Is this the issue that was reported by Eli in http://markmail.org/message/3swydmh5jojon6tm ?
In the case I described, the error was due to not having the largefiles extension enabled on the server. But I'm sure it's related in terms of not providing a useful error message back to the client.
The server-side corruption issue should be fixed by 809788118aa2 and 926bc23d0b6a which will be in Mercurial 2.1.
They're on the stable branch, so they'll be in 2.0.1 on Thursday.
Ah, right, I don't know how I got the version numbers mixed up like that.
Marking as resolved; fix is already released.
I'm not aware of a fix that addresses the actual issue raised in $TITLE. I suspect it's closely related to issue3149, which is a debugging nightmare. Reopening.
Fixed by http://selenic.com/repo/hg/rev/f15c646bffc7 Kevin Gessner <kevin@fogcreek.com> largefiles: display remote errors from putlfile (issue3123) (issue3149) (please test the fix)
--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:25 EDT --- This bug was previously known as _bug_ 3123 at http://mercurial.selenic.com/bts/issue3123