Skip to contentSkip to conversation

In partial SVN merges, the ranges contains additional character "*"

PATCH In review Jan Pešta 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

Jan Pešta

author
#0 lore raw

PATCH 1/1 In partial SVN merges, the ranges contains additional character "*"

See http://www.open.collab.net/community/subversion/articles/merge-info.html
Extract:
The range r30430:30435 that was added to 1.5.x in this merge has a '*' suffix for 1.5.x\www.
This '*' is the marker for a non-inheritable mergeinfo range. The '*' means that only the path on which the mergeinfo is explicitly set has had this range merged into it.

---
 perl/Git/SVN.pm | 5 +++++
 1 file changed, 5 insertions(+)
perl/Git/SVN.pm +5 -0
index 0ebc68a..74d49bb 100644
@@ -1493,6 +1493,11 @@ sub lookup_svn_merge {
 	my @merged_commit_ranges;
 	# find the tip
 	for my $range ( @ranges ) {
+		if ($range =~ /[*]$/) {
+			warn "W:Ignoring partial merge in svn:mergeinfo "
+				."dirprop: $source:$range\n";
+			next;
+		}
 		my ($bottom, $top) = split "-", $range;
 		$top ||= $bottom;
 		my $bottom_commit = $gs->find_rev_after( $bottom, 1, $top );
Signature · 1 line
1.8.1.msysgit.1
#1 lore raw

(adding Sam to the Cc:, I rely on him for SVN merge knowledge)

Quoted 7 lines · Jan Pešta

See http://www.open.collab.net/community/subversion/articles/merge-info.html
Extract:
The range r30430:30435 that was added to 1.5.x in this merge has a '*' suffix for 1.5.x\www.
This '*' is the marker for a non-inheritable mergeinfo range. The '*' means that only the path on which the mergeinfo is explicitly set has had this range merged into it.

Jan: can you write a better commit message to explain what your patch fixes/changes, and why we do it?

Something like:

Subject: [PATCH] git svn: ignore partial svn:mergeinfo

<explain why we ignore partial svn:mergeinfo in the body>

See Documentation/SubmittingPatches for hints. Thanks!

Quoted 22 lines
---
 perl/Git/SVN.pm | 5 +++++
 1 file changed, 5 insertions(+)
perl/Git/SVN.pm +5 -0
index 0ebc68a..74d49bb 100644
@@ -1493,6 +1493,11 @@ sub lookup_svn_merge {
 	my @merged_commit_ranges;
 	# find the tip
 	for my $range ( @ranges ) {
+		if ($range =~ /[*]$/) {
+			warn "W:Ignoring partial merge in svn:mergeinfo "
+				."dirprop: $source:$range\n";
+			next;
+		}
 		my ($bottom, $top) = split "-", $range;
 		$top ||= $bottom;
 		my $bottom_commit = $gs->find_rev_after( $bottom, 1, $top );
#2 lore raw
In reply to Jan Pešta
Quoted 29 lines · Jan Pešta

See http://www.open.collab.net/community/subversion/articles/merge-info.html
Extract:
The range r30430:30435 that was added to 1.5.x in this merge has a '*' suffix for 1.5.x\www.
This '*' is the marker for a non-inheritable mergeinfo range. The '*' means that only the path on which the mergeinfo is explicitly set has had this range merged into it.

---
 perl/Git/SVN.pm | 5 +++++
 1 file changed, 5 insertions(+)
perl/Git/SVN.pm +5 -0
index 0ebc68a..74d49bb 100644
@@ -1493,6 +1493,11 @@ sub lookup_svn_merge {
 	my @merged_commit_ranges;
 	# find the tip
 	for my $range ( @ranges ) {
+		if ($range =~ /[*]$/) {
+			warn "W:Ignoring partial merge in svn:mergeinfo "
+				."dirprop: $source:$range\n";
+			next;
+		}
 		my ($bottom, $top) = split "-", $range;
 		$top ||= $bottom;
 		my $bottom_commit = $gs->find_rev_after( $bottom, 1, $top );