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

2010-08-11 Thread Eric Wong
Jonathan Nieder jrnie...@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-git-send-email-ddkil...@kilzer.net

-- 
Eric Wong



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



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

2010-08-10 Thread Thomas Themel
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.

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

the...@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-1fast, scalable, distributed revisi
ii  libsvn-perl 1.6.12dfsg-1 Perl bindings for Subversion
ii  libterm-readkey-perl2.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-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2010-08-10 Thread Jonathan Nieder
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?



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