Mercurial > hg
diff hgext/largefiles/uisetup.py @ 16578:43fb170a23bd
largefiles: make archive -S store largefiles instead of standins
This is essentially a copy of largefile's override of archive() in the
archival class, adapted for overriding hgsubrepo's archive(). That
means decoding isn't taken into consideration, nor is .hg_archival.txt
generated (the same goes for regular subrepos). Unlike subrepos, but
consistent with largefile's handling of the top repo, ui.progress() is
*not* called. This should probably be refactored at some point, but
at least this generates the archives properly for now. Previously,
the standins were ignored and the largefiles were archived only for
the top level repo.
Long term, it would probably be most desirable to figure out how to
tweak archival's archive() if necessary such that largefiles doesn't
need to override it completely just to special case the translating of
standins to the real files. Largefiles will already return a context
with the true largefiles instead of the standins if lfilesrepo's
lfstatus is True- perhaps this can be leveraged?
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 03 May 2012 21:32:57 -0400 |
parents | 597ddcb41b32 |
children | 98a9266db803 |
line wrap: on
line diff
--- a/hgext/largefiles/uisetup.py Thu May 03 16:12:52 2012 -0500 +++ b/hgext/largefiles/uisetup.py Thu May 03 21:32:57 2012 -0400 @@ -100,6 +100,7 @@ extensions.wrapfunction(hg, 'merge', overrides.hgmerge) extensions.wrapfunction(archival, 'archive', overrides.overridearchive) + extensions.wrapfunction(hgsubrepo, 'archive', overrides.hgsubrepoarchive) extensions.wrapfunction(cmdutil, 'bailifchanged', overrides.overridebailifchanged)