Re: [CMake] Subversion_WC_INFO and git svn

2010-04-12 Thread Erik Johansson
On Fri, Apr 9, 2010 at 17:25, Arnaud Gelas wrote: > Now regarding Subersion_WC_INFO, could it be modified in such a way that if > first check of a svn working copy, send a message status if not and return a > default value ? I agree that this would be an useful feature and have earlier created a

Re: [CMake] Subversion_WC_INFO and git svn

2010-04-09 Thread Arnaud Gelas
(For the record) Following your advice, I just added the following condition IF( EXISTS ${CMAKE_SOURCE_DIR}/.svn/ ) ... ENDIF() And now it works fine! Even if this condition is not included in FindSubversion.cmake, I guess it could be added in the documentation (header) of this file.

Re: [CMake] Subversion_WC_INFO and git svn

2010-04-09 Thread David Cole
On Fri, Apr 9, 2010 at 11:25 AM, Arnaud Gelas wrote: > David, > > you're right Suversion_WC_INFO should only focus on svn working copy! Such > kind of features should be included in a specific module (git-svn one for > instance). > > I have just checked the documentation of git svn info which retu

Re: [CMake] Subversion_WC_INFO and git svn

2010-04-09 Thread Arnaud Gelas
David, you're right Suversion_WC_INFO should only focus on svn working copy! Such kind of features should be included in a specific module (git-svn one for instance). I have just checked the documentation of git svn info which returns a lot of important information, but does not support y

Re: [CMake] Subversion_WC_INFO and git svn

2010-04-09 Thread David Cole
Subversion_WC_INFO assumes an svn working copy tree, and it should remain so. In the case of using git svn, you should not use Subversion_WC_* macros as you do not have an svn working copy tree... The project code, if intending to support git svn checkouts, should be adapted accordingly. As git

[CMake] Subversion_WC_INFO and git svn

2010-04-09 Thread Arnaud Gelas
Hi guys, I have recently mirrored one svn project on github, and I am trying to keep both version up to date using git svn. In this project (on the svn repository), I was using Subversion_WC_INFO to get the revision, but now on the git repository, I get one error message that my directory