threads / discuss / 38368

[PULL] git-svn updates from Ramkumar

Subject: [PULL] git-svn updates from Ramkumar

## tl;dr

9 messages between Jan 15, 2015 and Jan 21, 2015.

replies: 8people: 3as markdown or json

Eric Wong· Jan 15, 2015, 09:07 UTC · lore
The following changes since commit 563d4e59bd167fe2eecc5480e3841d878b1c8c2b:
  Fifth batch for 2.3 cycle (2015-01-14 12:44:03 -0800)
are available in the git repository at:
  git://bogomips.org/git-svn.git for-junio
for you to fetch changes up to a94655dcfedc6b266ba32a3d32b0d52a1ce6a928:
  git-svn: make it play nicely with submodules (2015-01-15 08:35:55 +0000)
----------------------------------------------------------------
Ramkumar Ramachandra (2):
      Git::SVN: handle missing ref_id case correctly
      git-svn: make it play nicely with submodules
 git-svn.perl    | 6 ++++++
 perl/Git/SVN.pm | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
Junio C Hamano· Jan 15, 2015, 18:51 UTC · re: Eric Wong · lore

Re: [PULL] git-svn updates from Ramkumar

Eric Wong <normalperson@yhbt.net> writes:
Show 20 quoted lines
> The following changes since commit 563d4e59bd167fe2eecc5480e3841d878b1c8c2b:
>
>   Fifth batch for 2.3 cycle (2015-01-14 12:44:03 -0800)
>
> are available in the git repository at:
>
>   git://bogomips.org/git-svn.git for-junio
>
> for you to fetch changes up to a94655dcfedc6b266ba32a3d32b0d52a1ce6a928:
>
>   git-svn: make it play nicely with submodules (2015-01-15 08:35:55 +0000)
>
> ----------------------------------------------------------------
> Ramkumar Ramachandra (2):
>       Git::SVN: handle missing ref_id case correctly
>       git-svn: make it play nicely with submodules
>
>  git-svn.perl    | 6 ++++++
>  perl/Git/SVN.pm | 2 +-
>  2 files changed, 7 insertions(+), 1 deletion(-)
Thanks.  No tests necessary/feasible?  Just being curious.
Eric Wong· Jan 15, 2015, 22:46 UTC · re: Junio C Hamano · lore

Re: [PULL] git-svn updates from Ramkumar

Junio C Hamano <gitster@pobox.com> wrote:
> Thanks.  No tests necessary/feasible?  Just being curious.

They seemed simple and obvious enough to me, (and most importantly, didn't trigger regressions). If Ramkumar or anybody else has the time, I'd welcome them.

Junio C Hamano· Jan 15, 2015, 23:24 UTC · re: Eric Wong · lore

Re: [PULL] git-svn updates from Ramkumar

Eric Wong <normalperson@yhbt.net> writes:
Show 5 quoted lines
> Junio C Hamano <gitster@pobox.com> wrote:
>> Thanks.  No tests necessary/feasible?  Just being curious.
>
> They seemed simple and obvious enough to me,
> (and most importantly, didn't trigger regressions).

I can see that the top-most one is about .git that is a textual symlink ".gitdir: <elsewhere>" and the code after this part needed to convert it to the real place in order to be able to read/write "${GIT_DIR}/<some file>", so that is obvious to me.

But the other one just says "handle missing ref_id case correctly" without clarifying what is incorrect in the original and how the desired correct behaviour is different (in other words, what breaks without this change)

To which a natural reaction was "Can the existing breakage demonstrated by a test?".

If it is obvious for git-svn folks, then I wouldn't complain, though.

Ramkumar Ramachandra· Jan 15, 2015, 23:52 UTC · re: Junio C Hamano · lore

Re: [PULL] git-svn updates from Ramkumar

Junio C Hamano wrote:
> To which a natural reaction was "Can the existing breakage
> demonstrated by a test?".
There's a lot to do, if we really want to dig deeper.

The second git-svn-basic test onwards doesn't pass for me, so I really can't do much in the way of contributing tests until that's fixed.

Couldn't open a repository: Unable to connect to a repository at URL 'file:///Users/artagnon/src/git/t/trash%20directory.t9100-git-svn-basic/svnrepo': Unable to open an ra_local session to URL: Unable to open repository 'file:///Users/artagnon/src/git/t/trash%20directory.t9100-git-svn-basic/svnrepo': Expected FS format between '1' and '4'; found format '6' at /Users/artagnon/src/git/perl/blib/lib/Git/SVN.pm line 148.

Eric Wong· Jan 16, 2015, 00:08 UTC · re: Ramkumar Ramachandra · lore

Re: [PULL] git-svn updates from Ramkumar

Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 15 quoted lines
> Junio C Hamano wrote:
> > To which a natural reaction was "Can the existing breakage
> > demonstrated by a test?".
> 
> There's a lot to do, if we really want to dig deeper.
> 
> The second git-svn-basic test onwards doesn't pass for me, so I really
> can't do much in the way of contributing tests until that's fixed.
> 
> Couldn't open a repository: Unable to connect to a repository at URL
> 'file:///Users/artagnon/src/git/t/trash%20directory.t9100-git-svn-basic/svnrepo':
> Unable to open an ra_local session to URL: Unable to open repository
> 'file:///Users/artagnon/src/git/t/trash%20directory.t9100-git-svn-basic/svnrepo':
> Expected FS format between '1' and '4'; found format '6' at
> /Users/artagnon/src/git/perl/blib/lib/Git/SVN.pm line 148.

I haven't seen this before. Which SVN Perl binding version are you using? Perhaps your "svnadmin" tool is from a different SVN version or installation of SVN than your Perl bindings?

Ramkumar Ramachandra· Jan 16, 2015, 00:18 UTC · re: Eric Wong · lore

Re: [PULL] git-svn updates from Ramkumar

Eric Wong wrote:
> I haven't seen this before.  Which SVN Perl binding version are you
> using?  Perhaps your "svnadmin" tool is from a different SVN version
> or installation of SVN than your Perl bindings?

I have two installations of Subversion: the system one is at /Library/Developer/CommandLineTools @ version 1.7.17, and the brew installed one is at /usr/local @ version 1.8.10. When I build git from scratch, it links to the dated SVN bindings for some reason. I suspect I have to tweak $PERL5LIB?

Can we patch git-svn to link to the Right one on OS X?
Eric Wong· Jan 16, 2015, 00:39 UTC · re: Ramkumar Ramachandra · lore

Re: [PULL] git-svn updates from Ramkumar

Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 10 quoted lines
> Eric Wong wrote:
> > I haven't seen this before.  Which SVN Perl binding version are you
> > using?  Perhaps your "svnadmin" tool is from a different SVN version
> > or installation of SVN than your Perl bindings?
> 
> I have two installations of Subversion: the system one is at
> /Library/Developer/CommandLineTools @ version 1.7.17, and the brew
> installed one is at /usr/local @ version 1.8.10. When I build git from
> scratch, it links to the dated SVN bindings for some reason. I suspect
> I have to tweak $PERL5LIB?
Adding it to GITPERLLIB should work...
> Can we patch git-svn to link to the Right one on OS X?

You should be able to set up everything in the Makefile, that has special cases for Fink and Darwin ports, at least. Somebody who knows OS X packaging systems might have better advice.

Ramkumar Ramachandra· Jan 21, 2015, 17:47 UTC · re: Eric Wong · lore

Re: [PULL] git-svn updates from Ramkumar

Eric Wong wrote:
> Adding it to GITPERLLIB should work...

I tried everything including replicating the commands in the brew formula that does the Right thing: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/git.rb

I'm clearly missing something. Can someone on Darwin tell us the right flags/ env variables?

← back to recent threads