* [PATCH] In partial SVN merges, the ranges contains additional character "*"
@ 2013-03-06 21:35 Jan Pešta
2013-03-07 0:04 ` Junio C Hamano
2013-03-07 10:44 ` Eric Wong
0 siblings, 2 replies; 3+ messages in thread
From: Jan Pešta @ 2013-03-06 21:35 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano, Matthieu Moy
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.
Signed-off-by: Jan Pesta <jan.pesta@certicon.cz>
---
perl/Git/SVN.pm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/perl/Git/SVN.pm b/perl/Git/SVN.pm
index 0ebc68a..74d49bb 100644
--- a/perl/Git/SVN.pm
+++ b/perl/Git/SVN.pm
@@ -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 );
--
1.8.1.msysgit.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] In partial SVN merges, the ranges contains additional character "*"
2013-03-06 21:35 [PATCH] In partial SVN merges, the ranges contains additional character "*" Jan Pešta
@ 2013-03-07 0:04 ` Junio C Hamano
2013-03-07 10:44 ` Eric Wong
1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2013-03-07 0:04 UTC (permalink / raw)
To: Eric Wong; +Cc: git, Matthieu Moy, Jan Pešta
Jan Pešta <jan.pesta@certicon.cz> writes:
> 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.
>
> Signed-off-by: Jan Pesta <jan.pesta@certicon.cz>
> ---
> perl/Git/SVN.pm | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/perl/Git/SVN.pm b/perl/Git/SVN.pm
> index 0ebc68a..74d49bb 100644
> --- a/perl/Git/SVN.pm
> +++ b/perl/Git/SVN.pm
> @@ -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 );
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] In partial SVN merges, the ranges contains additional character "*"
2013-03-06 21:35 [PATCH] In partial SVN merges, the ranges contains additional character "*" Jan Pešta
2013-03-07 0:04 ` Junio C Hamano
@ 2013-03-07 10:44 ` Eric Wong
1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2013-03-07 10:44 UTC (permalink / raw)
To: Jan Pešta; +Cc: git, Junio C Hamano, Matthieu Moy, Sam Vilain
(adding Sam to the Cc:, I rely on him for SVN merge knowledge)
Jan Pešta <jan.pesta@certicon.cz> wrote:
> 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!
> Signed-off-by: Jan Pesta <jan.pesta@certicon.cz>
> ---
> perl/Git/SVN.pm | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/perl/Git/SVN.pm b/perl/Git/SVN.pm
> index 0ebc68a..74d49bb 100644
> --- a/perl/Git/SVN.pm
> +++ b/perl/Git/SVN.pm
> @@ -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 );
> --
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-07 10:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-06 21:35 [PATCH] In partial SVN merges, the ranges contains additional character "*" Jan Pešta
2013-03-07 0:04 ` Junio C Hamano
2013-03-07 10:44 ` Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).