# [PULL] git-svn updates from Ramkumar

9 messages from 2015-01-15 to 2015-01-21. Participants: Eric Wong, Junio C Hamano, Ramkumar Ramachandra.
Thread: https://gitlist.dev/t/38368

## Eric Wong, 2015-01-15 09:07

Subject: [PULL] git-svn updates from Ramkumar
Message-ID: <20150115090703.GA12333@dcvr.yhbt.net>
URL: https://gitlist.dev/e/20150115090703.GA12333%40dcvr.yhbt.net

```
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, 2015-01-15 18:51

Subject: Re: [PULL] git-svn updates from Ramkumar
Message-ID: <xmqqr3uv7u7v.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqr3uv7u7v.fsf%40gitster.dls.corp.google.com
In-Reply-To: <20150115090703.GA12333@dcvr.yhbt.net>

```
Eric Wong <normalperson@yhbt.net> writes:

> 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, 2015-01-15 22:46

Subject: Re: [PULL] git-svn updates from Ramkumar
Message-ID: <20150115224652.GA25482@dcvr.yhbt.net>
URL: https://gitlist.dev/e/20150115224652.GA25482%40dcvr.yhbt.net
In-Reply-To: <xmqqr3uv7u7v.fsf@gitster.dls.corp.google.com>

```
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, 2015-01-15 23:24

Subject: Re: [PULL] git-svn updates from Ramkumar
Message-ID: <xmqqtwzr4ofo.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqtwzr4ofo.fsf%40gitster.dls.corp.google.com
In-Reply-To: <20150115224652.GA25482@dcvr.yhbt.net>

```
Eric Wong <normalperson@yhbt.net> writes:

> 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, 2015-01-15 23:52

Subject: Re: [PULL] git-svn updates from Ramkumar
Message-ID: <CALkWK0kHQ-qhD3p0_VEhVrbD39yV=F5t2nQZ4D6RKP_gpg9tKA@mail.gmail.com>
URL: https://gitlist.dev/e/CALkWK0kHQ-qhD3p0_VEhVrbD39yV%3DF5t2nQZ4D6RKP_gpg9tKA%40mail.gmail.com
In-Reply-To: <xmqqtwzr4ofo.fsf@gitster.dls.corp.google.com>

```
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, 2015-01-16 00:08

Subject: Re: [PULL] git-svn updates from Ramkumar
Message-ID: <20150116000802.GA8616@dcvr.yhbt.net>
URL: https://gitlist.dev/e/20150116000802.GA8616%40dcvr.yhbt.net
In-Reply-To: <CALkWK0kHQ-qhD3p0_VEhVrbD39yV=F5t2nQZ4D6RKP_gpg9tKA@mail.gmail.com>

```
Ramkumar Ramachandra <artagnon@gmail.com> wrote:
> 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, 2015-01-16 00:18

Subject: Re: [PULL] git-svn updates from Ramkumar
Message-ID: <CALkWK0kFngxd2uwHjAtov+9rUbo13OOoeAhmvbxxsz39hmMnaw@mail.gmail.com>
URL: https://gitlist.dev/e/CALkWK0kFngxd2uwHjAtov%2B9rUbo13OOoeAhmvbxxsz39hmMnaw%40mail.gmail.com
In-Reply-To: <20150116000802.GA8616@dcvr.yhbt.net>

```
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, 2015-01-16 00:39

Subject: Re: [PULL] git-svn updates from Ramkumar
Message-ID: <20150116003931.GA28184@dcvr.yhbt.net>
URL: https://gitlist.dev/e/20150116003931.GA28184%40dcvr.yhbt.net
In-Reply-To: <CALkWK0kFngxd2uwHjAtov+9rUbo13OOoeAhmvbxxsz39hmMnaw@mail.gmail.com>

```
Ramkumar Ramachandra <artagnon@gmail.com> wrote:
> 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, 2015-01-21 17:47

Subject: Re: [PULL] git-svn updates from Ramkumar
Message-ID: <CALkWK0mtZ_w6ExL+GZX4q3gsFj3qVwb+V463nAFFuTabqzobmA@mail.gmail.com>
URL: https://gitlist.dev/e/CALkWK0mtZ_w6ExL%2BGZX4q3gsFj3qVwb%2BV463nAFFuTabqzobmA%40mail.gmail.com
In-Reply-To: <20150116003931.GA28184@dcvr.yhbt.net>

```
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?

```
