Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#592495: git-svn: info fails with absolute path

7 views
Skip to first unread message

Thomas Themel

unread,
Aug 10, 2010, 10:40:02 AM8/10/10
to
Package: git-svn
Version: 1:1.7.1-1.1
Severity: normal

I have some cmake based builds that want to automatically figure
out the revision of the working copy we're building. Normally, this
is done by running "svn info <root path>", with an absolute path.

I'm trying to replace svn with git-svn here, and simply changing
this to "git svn info <root path>" doesn't work with absolute paths.
Since all other git commands do, I don't see why this should be the case.

themel@socrates:~/work/goodiebag/oid-store/build/tests$ git svn info .
Path: .
URL: https://localhost:4443/svn/goodiebag/trunk/oid-store/build/tests
Repository Root: https://localhost:4443/svn/goodiebag
Repository UUID: 44d14b40-c8c2-4cd3-bf89-d70a8d035482
Revision: 24
Node Kind: directory
Schedule: normal
Last Changed Author:
Last Changed Rev:
Last Changed Date: 2010-08-10 16:24:05 +0200 (Tue, 10 Aug 2010)

themel@socrates:~/work/goodiebag/oid-store/build/tests$ git svn info $PWD
svn: 'home/themel/work/goodiebag/oid-store/build/tests' is not under version control

-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.33-rc5 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages git-svn depends on:
ii git 1:1.7.1-1 fast, scalable, distributed revisi
ii libsvn-perl 1.6.12dfsg-1 Perl bindings for Subversion
ii libterm-readkey-perl 2.30-4 A perl module for simple terminal
ii libwww-perl 5.836-1 Perl HTTP/WWW client/server librar

git-svn recommends no packages.

Versions of packages git-svn suggests:
pn git-doc <none> (no description available)
ii subversion 1.6.12dfsg-1 Advanced version control system

-- no debconf information
--
[*Thomas Themel*] Frankly, many of you on this list really need to
[extended contact] be doused with gasoline and then lit.
[info provided in]
[*message header*] - Tim May on cypherpunks

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Jonathan Nieder

unread,
Aug 10, 2010, 8:10:02 PM8/10/10
to
tags 592495 + upstream
severity 592495 wishlist
thanks

Hi Eric,

Thomas Themel wrote:

> I have some cmake based builds that want to automatically figure
> out the revision of the working copy we're building. Normally, this
> is done by running "svn info <root path>", with an absolute path.
>
> I'm trying to replace svn with git-svn here, and simply changing
> this to "git svn info <root path>" doesn't work with absolute paths.
> Since all other git commands do, I don't see why this should be the case.

Sounds sensible to me. Any advice for people who would like to
work on this?

Eric Wong

unread,
Aug 11, 2010, 5:00:02 PM8/11/10
to
Jonathan Nieder <jrni...@gmail.com> wrote:
> Hi Eric,
>
> Thomas Themel wrote:
>
> > I have some cmake based builds that want to automatically figure
> > out the revision of the working copy we're building. Normally, this
> > is done by running "svn info <root path>", with an absolute path.
> >
> > I'm trying to replace svn with git-svn here, and simply changing
> > this to "git svn info <root path>" doesn't work with absolute paths.
> > Since all other git commands do, I don't see why this should be the case.
>
> Sounds sensible to me. Any advice for people who would like to
> work on this?

Hi Jonathan,

One should have to resolve the GIT_DIR from $root_path first (using
(rev-parse --git-dir) and then probably use ls-tree to figure out
how to canonicalize the path based on $root_path.

I've been stuck on David's problem[1] for a bit (and distracted by other
Free software projects, too), but this shouldn't be tough to do.

[1] - mid.gmane.org/1281159415-60900-1-gi...@kilzer.net

--
Eric Wong

0 new messages