diff hgext/largefiles/uisetup.py @ 18704:d69585a5c5c0

largefiles: don't cache largefiles for pulled heads by default After discussion, we've agreed that largefiles for newly pulled heads should not be cached by default. The use case for this is using largefiles repos with multiple remote servers (and therefore multiple remote largefiles caches), where users will be pulling from non-default locations on a regular basis. We think this use case will be significantly less common than the use case where all largefiles are stored on the same central server, so the default should be no caching. The old behavior can be obtained by passing the --cache-largefiles flag to pull.
author Na'Tosha Bard <natosha@unity3d.com>
date Sat, 09 Feb 2013 21:07:42 +0000
parents 2e3ec9e6ee6e
children 8abaadab9abb
line wrap: on
line diff
--- a/hgext/largefiles/uisetup.py	Fri Feb 15 21:20:24 2013 -0600
+++ b/hgext/largefiles/uisetup.py	Sat Feb 09 21:07:42 2013 +0000
@@ -79,7 +79,9 @@
     entry = extensions.wrapcommand(commands.table, 'pull',
                                    overrides.overridepull)
     pullopt = [('', 'all-largefiles', None,
-                 _('download all pulled versions of largefiles'))]
+                 _('download all pulled versions of largefiles')),
+               ('', 'cache-largefiles', None,
+                 _('caches new largefiles in all pulled heads'))]
     entry[1].extend(pullopt)
     entry = extensions.wrapcommand(commands.table, 'clone',
                                    overrides.overrideclone)