Mercurial > hg-stable
diff hgext/largefiles/uisetup.py @ 16439:290850e7aa43
largefiles: fix cat for largefiles (issue3352)
This is a fix to largefiles so that 'hg cat' will work correctly when a
largefile is specified.
As per discussion on Issue 3352:
1) The file will be printed regardless if it is binary or large.
2) The file is downloaded if it is not readily available (not found in
the system cache), so that it can be printed. If the download fails,
then we abort.
author | Na'Tosha Bard <natosha@unity3d.com> |
---|---|
date | Mon, 16 Apr 2012 17:03:39 +0200 |
parents | d87d9d8a8e03 |
children | 874a680a3e23 |
line wrap: on
line diff
--- a/hgext/largefiles/uisetup.py Mon Apr 16 08:50:40 2012 -0700 +++ b/hgext/largefiles/uisetup.py Mon Apr 16 17:03:39 2012 +0200 @@ -64,6 +64,8 @@ overrides.overrideupdate) entry = extensions.wrapcommand(commands.table, 'pull', overrides.overridepull) + entry = extensions.wrapcommand(commands.table, 'cat', + overrides.overridecat) entry = extensions.wrapfunction(merge, '_checkunknownfile', overrides.overridecheckunknownfile) entry = extensions.wrapfunction(merge, 'manifestmerge',