diff hgext/largefiles/uisetup.py @ 18978:8abaadab9abb

largefiles: introduce pull --lfrev option The revset will be evaluated after the changesets has been pulled, and missing largefiles from matching revisions will be pulled to the local caches. This in combination with revsets will make it possible to specify different strategies for pulling largefiles. The revset expressions used for this option might be quite complex and will probably be most useful from scripts or an alias ... but less complicated than configuring hooks.
author Mads Kiilerich <madski@unity3d.com>
date Mon, 15 Apr 2013 01:57:16 +0200
parents d69585a5c5c0
children 1176832fc757
line wrap: on
line diff
--- a/hgext/largefiles/uisetup.py	Mon Apr 15 01:54:43 2013 +0200
+++ b/hgext/largefiles/uisetup.py	Mon Apr 15 01:57:16 2013 +0200
@@ -81,7 +81,9 @@
     pullopt = [('', 'all-largefiles', None,
                  _('download all pulled versions of largefiles')),
                ('', 'cache-largefiles', None,
-                 _('caches new largefiles in all pulled heads'))]
+                 _('caches new largefiles in all pulled heads')),
+               ('', 'lfrev', [],
+                _('download largefiles for these revisions'), _('REV'))]
     entry[1].extend(pullopt)
     entry = extensions.wrapcommand(commands.table, 'clone',
                                    overrides.overrideclone)