split a set of changesets up based on filesets
Arne Babenhauserheide
arne_bab at web.de
Wed Jan 14 13:47:50 UTC 2015
Am Mittwoch, 14. Januar 2015, 06:23:58 schrieb Matthew Turk:
> Given a revision specifier, is it possible to apply all the changes in a
> squashed way but *only* to the files specified by a given fileset?
You could simply update to the old revision, apply the diff to the new one and then commit only the correct files:
hg diff -r OLD -r NEW > full-changes.diff
hg update OLD
hg diff # this MUST be empty to make this safe
hg import --no-commit full-changes.diff
hg commit -m "MESSAGE1" glob*pattern1 ... paths/to/file1 ...
hg commit -m "MESSAGE2" glob*pattern2 ... paths/to/file2 ...
...
Best wishes,
Arne
--
Konstruktive Kritik:
- http://draketo.de/licht/krude-ideen/konstruktive-kritik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 299 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20150114/e27af6ca/attachment.asc>
More information about the Mercurial
mailing list