diff hgext/largefiles/uisetup.py @ 23886:5ce8dcd05dc4

largefiles: enable subrepo support for add The --large, --normal and --lfsize args couldn't be passed to a subrepo before, and files in the subrepos would be added silently (if -v wasn't specified) as normal files. As an added bonus, 'hg add --dry-run' no longer prints that largefiles would also be added as normal files as well.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 12 Jan 2015 21:44:43 -0500
parents 2b79d124a12f
children 23438bceba04
line wrap: on
line diff
--- a/hgext/largefiles/uisetup.py	Mon Jan 12 20:59:17 2015 -0500
+++ b/hgext/largefiles/uisetup.py	Mon Jan 12 21:44:43 2015 -0500
@@ -33,6 +33,7 @@
     # and in the process of handling commit -A (issue3542)
     entry = extensions.wrapfunction(scmutil, 'addremove',
                                     overrides.scmutiladdremove)
+    extensions.wrapfunction(cmdutil, 'add', overrides.cmdutiladd)
     extensions.wrapfunction(cmdutil, 'remove', overrides.cmdutilremove)
     extensions.wrapfunction(cmdutil, 'forget', overrides.cmdutilforget)