git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch for git-svn.perl
@ 2008-09-05 11:18 Paul Talacko
  2008-09-05 13:29 ` Miklos Vajna
  2008-09-07  2:03 ` Eric Wong
  0 siblings, 2 replies; 4+ messages in thread
From: Paul Talacko @ 2008-09-05 11:18 UTC (permalink / raw)
  To: normalperson, brad.king, git

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

Hello,

There's an issue in git-svn as autoprops are not applied to renamed files, only to added files.

This patch fixes the bug.




      

[-- Attachment #2: patch --]
[-- Type: application/octet-stream, Size: 438 bytes --]

diff --git a/git-svn.perl b/git-svn.perl
index 7a1d26d..0a04cc0 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -3636,6 +3636,7 @@ sub R {
 	my $fbat = $self->add_file($self->repo_path($m->{file_b}), $pbat,
 				$self->url_path($m->{file_a}), $self->{r});
 	print "\tR\t$m->{file_a} => $m->{file_b}\n" unless $::_q;
+	$self->apply_autoprops( $file, $fbat );
 	$self->chg_file($fbat, $m);
 	$self->close_file($fbat,undef,$self->{pool});
 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: Patch for git-svn.perl
  2008-09-05 11:18 Patch for git-svn.perl Paul Talacko
@ 2008-09-05 13:29 ` Miklos Vajna
  2008-09-07  2:03 ` Eric Wong
  1 sibling, 0 replies; 4+ messages in thread
From: Miklos Vajna @ 2008-09-05 13:29 UTC (permalink / raw)
  To: Paul Talacko; +Cc: normalperson, brad.king, git

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

On Fri, Sep 05, 2008 at 11:18:26AM +0000, Paul Talacko <gnuruandstuff@yahoo.co.uk> wrote:
> There's an issue in git-svn as autoprops are not applied to renamed files, only to added files.
> 
> This patch fixes the bug.

Please read Documentation/SubmittingPatches and send a proper patch,
thanks!

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch for git-svn.perl
  2008-09-05 11:18 Patch for git-svn.perl Paul Talacko
  2008-09-05 13:29 ` Miklos Vajna
@ 2008-09-07  2:03 ` Eric Wong
  2008-09-07  2:18   ` Junio C Hamano
  1 sibling, 1 reply; 4+ messages in thread
From: Eric Wong @ 2008-09-07  2:03 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: brad.king, git, Paul Talacko

Paul Talacko <gnuruandstuff@yahoo.co.uk> wrote:
> Hello,
> 
> There's an issue in git-svn as autoprops are not applied to renamed
> files, only to added files.
> 
> This patch fixes the bug.

Thanks Paul.  I've also added a test case as well.

Junio,

I've rebased against 80d12c2 and repushed out to
git://git.bogomips.org/git-svn.git along with the following changes:

Eric Wong (2):
      git-svn: check error code of send_txstream
      t9124: clean up chdir usage

Florian Weimer (3):
      git-svn: extract base blob in generate_diff
      git-svn: Introduce SVN::Git::Editor::_chg_file_get_blob
      git-svn: Send deltas during commits

Paul Talacko (1):
      git-svn: set auto_props when renaming files

Thomas Rast (9):
      git svn: catch lack of upstream info for dcommit earlier
      git svn info: tests: let 'init' test run with SVN 1.5
      git svn info: tests: do not use set -e
      git svn info: tests: use test_cmp instead of git-diff
      git svn info: tests: fix ptouch argument order in setup
      git svn info: make info relative to the current directory
      git svn info: always quote URLs in 'info' output
      git-svn: match SVN 1.5 behaviour of info' on unknown item
      git-svn: fix 'info' tests for unknown items

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch for git-svn.perl
  2008-09-07  2:03 ` Eric Wong
@ 2008-09-07  2:18   ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2008-09-07  2:18 UTC (permalink / raw)
  To: Eric Wong; +Cc: brad.king, git, Paul Talacko

Eric Wong <normalperson@yhbt.net> writes:

> Junio,
>
> I've rebased against 80d12c2 and repushed out to
> git://git.bogomips.org/git-svn.git along with the following changes:

Thanks.  I'll be pulling from you, Paul and Shawn for subsystem updates
this weekend.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-07  2:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 11:18 Patch for git-svn.perl Paul Talacko
2008-09-05 13:29 ` Miklos Vajna
2008-09-07  2:03 ` Eric Wong
2008-09-07  2:18   ` Junio C Hamano

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).