[RFC] QA of manually set svn:mergeinfo
From: Paul Burba <pburba_at_collab.net>
Date: 2007-11-07 17:15:47 CET
Users can manually set the svn:mergeinfo property with svn propset.
How far should we go to save them from themselves?
1) Today if the mergeinfo isn't validly formatted we let the ps succeed,
>svn ps svn:mergeinfo "jrandom" merge_tests-63\A_COPY\D\G
>svn merge %URL63%/A/D merge_tests-63\A_COPY\D -r3:8
>svn ci -m "" merge_tests-63
We do allow the propsets however:
2) Overlapping ranges with the same inheritability
>svn ps svn:mergeinfo "/A/D/G:1,5-7,7-9" merge_tests-63\A_COPY\D\G
3) Overlapping ranges with differing inhertiability
>svn ps svn:mergeinfo "/A/D/G:1,5-7,7-9*" merge_tests-63\A_COPY\D\G
4) Unordered ranges
>svn ps svn:mergeinfo "/A/D/G:1,7-9,5" merge_tests-63\A_COPY\D\G
These last three can be merged into (with unpredictable results in some
In the second and fourth cases we could correct the mergeinfo to
A few options...
A) Consider cases 2 - 4 as invalid svn:mergeinfo and fail during a
B) Auto-correct the mergeinfo in cast 2 and 4 immediately following the
C) Auto-correct the mergeinfo in cast 2 and 4 immediately following the
D) Fail all four cases on the propset attempt.
I really prefer D! In cases 1 and 3 it lets the user know as soon as
Thoughts, objections to D?
Paul
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.