changeset 26427:97dc6ab42aad

merge with stable
author Matt Mackall <mpm@selenic.com>
date Thu, 01 Oct 2015 12:17:46 -0500
parents 0486c16ce621 (current diff) 93bfa9fc96e3 (diff)
children b75c4651b186
files hgext/largefiles/overrides.py i18n/pt_BR.po
diffstat 6 files changed, 37 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.hgsigs	Wed Sep 30 12:36:30 2015 -0400
+++ b/.hgsigs	Thu Oct 01 12:17:46 2015 -0500
@@ -112,3 +112,4 @@
 96a38d44ba093bd1d1ecfd34119e94056030278b 0 iQIVAwUAVarUUyBXgaxoKi1yAQIfJw/+MG/0736F/9IvzgCTF6omIC+9kS8JH0n/JBGPhpbPAHK4xxjhOOz6m3Ia3c3HNoy+I6calwU6YV7k5dUzlyLhM0Z5oYpdrH+OBNxDEsD5SfhclfR63MK1kmgtD33izijsZ++6a+ZaVfyxpMTksKOktWSIDD63a5b/avb6nKY64KwJcbbeXPdelxvXV7TXYm0GvWc46BgvrHOJpYHCDaXorAn6BMq7EQF8sxdNK4GVMNMVk1njve0HOg3Kz8llPB/7QmddZXYLFGmWqICyUn1IsJDfePxzh8sOYVCbxAgitTJHJJmmH5gzVzw7t7ljtmxSJpcUGQJB2MphejmNFGfgvJPB9c6xOCfUqDjxN5m24V+UYesZntpfgs3lpfvE7785IpVnf6WfKG4PKty01ome/joHlDlrRTekKMlpiBapGMfv8EHvPBrOA+5yAHNfKsmcyCcjD1nvXYZ2/X9qY35AhdcBuNkyp55oPDOdtYIHfnOIxlYMKG1dusDx3Z4eveF0lQTzfRVoE5w+k9A2Ov3Zx0aiSkFFevJjrq5QBfs9dAiT8JYgBmWhaJzCtJm12lQirRMKR/br88Vwt/ry/UVY9cereMNvRYUGOGfC8CGGDCw4WDD+qWvyB3mmrXVuMlXxQRIZRJy5KazaQXsBWuIsx4kgGqC5Uo+yzpiQ1VMuCyI=
 21aa1c313b05b1a85f8ffa1120d51579ddf6bf24 0 iQIVAwUAVbuouCBXgaxoKi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8Y/qvhFP12Zu4tOH8P/dFY=
--- a/.hgtags	Wed Sep 30 12:36:30 2015 -0400
+++ b/.hgtags	Thu Oct 01 12:17:46 2015 -0500
@@ -125,3 +125,4 @@
 96a38d44ba093bd1d1ecfd34119e94056030278b 3.5-rc
 21aa1c313b05b1a85f8ffa1120d51579ddf6bf24 3.5
 1a45e49a6bed023deb229102a8903234d18054d3 3.5.1
+9a466b9f9792e3ad7ae3fc6c43c3ff2e136b718d 3.5.2
--- a/hgext/largefiles/overrides.py	Wed Sep 30 12:36:30 2015 -0400
+++ b/hgext/largefiles/overrides.py	Thu Oct 01 12:17:46 2015 -0500
@@ -894,9 +894,19 @@
     finally:
         repo.unfiltered().lfstatus = False
 
+def hgwebarchive(orig, web, req, tmpl):
+    web.repo.lfstatus = True
+
+    try:
+        return orig(web, req, tmpl)
+    finally:
+        web.repo.lfstatus = False
+
 def overridearchive(orig, repo, dest, node, kind, decode=True, matchfn=None,
             prefix='', mtime=None, subrepos=None):
-    if not repo.lfstatus:
+    # For some reason setting repo.lfstatus in hgwebarchive only changes the
+    # unfiltered repo's attr, so check that as well.
+    if not repo.lfstatus and not repo.unfiltered().lfstatus:
         return orig(repo, dest, node, kind, decode, matchfn, prefix, mtime,
                     subrepos)
 
--- a/hgext/largefiles/uisetup.py	Wed Sep 30 12:36:30 2015 -0400
+++ b/hgext/largefiles/uisetup.py	Thu Oct 01 12:17:46 2015 -0500
@@ -119,6 +119,8 @@
     extensions.wrapfunction(archival, 'archive', overrides.overridearchive)
     extensions.wrapfunction(subrepo.hgsubrepo, 'archive',
                             overrides.hgsubrepoarchive)
+    extensions.wrapfunction(webcommands, 'archive',
+                            overrides.hgwebarchive)
     extensions.wrapfunction(cmdutil, 'bailifchanged',
                             overrides.overridebailifchanged)
 
--- a/i18n/pt_BR.po	Wed Sep 30 12:36:30 2015 -0400
+++ b/i18n/pt_BR.po	Thu Oct 01 12:17:46 2015 -0500
@@ -16140,6 +16140,15 @@
 "    em arquivos não resolvidos.\n"
 "    "
 
+#, python-format
+msgid "%s: unknown bundle feature, %s"
+msgstr "%s: característica de bundle %s desconhecida"
+
+msgid ""
+"see https://mercurial.selenic.com/wiki/BundleFeature for more information"
+msgstr ""
+"veja http://mercurial.selenic.com/wiki/BundleFeature para mais informações"
+
 msgid "discard uncommitted changes (no backup)"
 msgstr "descarta mudanças não consolidadas (sem backup)"
 
--- a/tests/test-largefiles-wireproto.t	Wed Sep 30 12:36:30 2015 -0400
+++ b/tests/test-largefiles-wireproto.t	Thu Oct 01 12:17:46 2015 -0500
@@ -15,6 +15,8 @@
   > minsize=2
   > patterns=glob:**.dat
   > usercache=${USERCACHE}
+  > [web]
+  > allow_archive = zip
   > [hooks]
   > precommit=sh -c "echo \\"Invoking status precommit hook\\"; hg status"
   > EOF
@@ -215,6 +217,17 @@
   adding file changes
   added 1 changesets with 1 changes to 1 files
 
+Archive contains largefiles
+  >>> import urllib2, os
+  >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2']
+  >>> with open('archive.zip', 'w') as f:
+  ...     f.write(urllib2.urlopen(u).read())
+  $ unzip -t archive.zip
+  Archive:  archive.zip
+      testing: empty-default/.hg_archival.txt   OK
+      testing: empty-default/f1         OK
+  No errors detected in compressed data of archive.zip.
+
 test 'verify' with remotestore:
 
   $ rm "${USERCACHE}"/02a439e5c31c526465ab1a0ca1f431f76b827b90