[PATCH 0 of 5 ] archive -S, now with -I and -X support

Matt Harbison matt_harbison at yahoo.com
Wed Jun 20 04:45:28 UTC 2012


The first three patches are small fixes to the original archive -S series I submitted last month (which is only on default), and tests for them.

The last two implement the new functionality and tests.  I didn't bother splitting the largefiles implementation changes from the subrepo implementation changes because they are essentially copy/pastes, and I figured it would be useful for somebody in the future to see that these two seemingly unrelated areas are in fact related.

I also basically coded the tests to run twice, once with largefiles enabled, once without since they are (almost) totally separate code paths.  I have largefiles enable by default and everything passed fine until I tried disabling it, in which case the subrepo base class code got flagged.  I didn't poke too much into the test suite, so I don't know how many tests there are like this, namely the behavior changes based on what the user has enabled in their ~/.hgrc.

The motivation behind this (other than eliminating the surprising behavior), is to use it in order to support -S on extdiff.  I've got a hack of extdiff -S working without this, but it needed to reference the _repo, and therefore wouldn't support git, svn or largefiles like archiving does.


More information about the Mercurial-devel mailing list