sapling/mercurial
Durham Goode 94115ed589 truncate: handle bug in truncate
Summary:
btrfs has a bug involving truncate not returning the correct error
code. We already handle it in other cases, so let's extend it to these uses of
truncate. Hopefully the need for this disappears soon.

Reviewed By: quark-zju

Differential Revision: D8152297

fbshipit-source-id: f55602ff5e0ec36346c547bfd4b6d0f6e4127500
2018-05-30 18:20:57 -07:00
..
cext xdiff: fix types on 32 bit systems 2018-05-14 11:14:38 -07:00
cffi Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
default.d mergetools.rc: find OSX FileMerge in the new location inside Xcode 4.3 2015-10-16 11:37:34 +02:00
help checkheads: add a config to disable it 2018-05-25 02:47:19 -07:00
hgweb Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
httpclient Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
pure Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
rust treestate: add API to get directory's aggregated states 2018-05-26 14:05:18 -07:00
templates hgweb: stop using HTML comments in <script> 2017-12-15 12:15:58 +08:00
thirdparty Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
__init__.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
.clang-format move scm/hg/.clang-format to scm/hg/mercurial/ 2018-05-25 14:35:51 -07:00
ancestor.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
archival.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
bdiff.c bdiff: remove trailing newlines 2017-10-04 10:51:39 -04:00
bdiff.h bdiff: include compat.h in header to define ssize_t 2017-10-13 22:38:24 +09:00
bitmanipulation.h fix undefined behavior in bitmanipulation.h 2018-04-13 21:51:13 -07:00
bookmarks.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
branchmap.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
bundle2.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
bundlerepo.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
byterange.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
changegroup.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
changelog.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
chgserver.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
cmdutil.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
color.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
commands.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
commandserver.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
compat.h compatibility: fix core mpatch.h and compat.h 2018-04-13 21:51:24 -07:00
config.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
configitems.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
connectionpool.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
context.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
copies.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
crecord.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
dagop.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
dagparser.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
dagutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
debugcommands.py debugcheckcasecollisions: add a command to check case collisions 2018-05-27 05:04:56 -07:00
destutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
dirstate.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
dirstateguard.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
discovery.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
dispatch.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
drawdag.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
dummycert.pem ssl: on OS X, use a dummy cert to trick Python/OpenSSL to use system CA certs 2014-09-26 02:19:48 +02:00
encoding.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
error.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
exchange.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
exewrapper.c exewrapper: format with clang-format 2017-10-04 11:04:18 -04:00
extensions.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
fancyopts.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
filelog.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
filemerge.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
fileset.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
formatter.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
graphmod.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
hbisect.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
help.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
hg.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
hintutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
hook.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
httpconnection.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
httppeer.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
i18n.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
interpreter.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
keepalive.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
localrepo.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
lock.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
logexchange.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
lsprof.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
lsprofcalltree.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
mail.py py3: make sure the first argument of time.strftime() is str 2017-11-29 08:44:06 +05:30
main.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
manifest.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
match.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
mdiff.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
merge.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
mergeutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
metrics.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
minirst.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
mpatch.c mpatch: add rust bindings 2018-05-14 16:06:32 -07:00
mpatch.h compatibility: fix core mpatch.h and compat.h 2018-04-13 21:51:24 -07:00
namespaces.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
node.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
obsolete.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
obsutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
parser.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
patch.py stat: add a new "status" style 2018-05-25 01:04:07 -07:00
pathutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
peer.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
phases.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
policy.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
posix.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
profiling.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
progress.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
pushkey.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
pvec.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
pycompat.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
rcutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
registrar.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
repair.py truncate: handle bug in truncate 2018-05-30 18:20:57 -07:00
repository.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
repoview.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
revlog.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
revset.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
revsetlang.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
rewriteutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
scmposix.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
scmutil.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
scmwindows.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
server.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
setdiscovery.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
similar.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
simplemerge.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
smartset.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
sparse.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
sshpeer.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
sshserver.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
sslutil.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
statichttprepo.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
statprof.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
store.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
streamclone.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
subrepo.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
tagmerge.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
tags.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
templatefilters.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
templatekw.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
templater.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
transaction.py truncate: handle bug in truncate 2018-05-30 18:20:57 -07:00
treediscovery.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
txnutil.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
ui.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
unionrepo.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
upgrade.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
url.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
urllibcompat.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
util.py truncate: handle bug in truncate 2018-05-30 18:20:57 -07:00
verify.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
vfs.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
win32.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
windows.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
wireproto.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
worker.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00