[CMake] Subversion_WC_INFO and git svn

Arnaud Gelas Arnaud_Gelas at hms.harvard.edu
Fri Apr 9 11:25:41 EDT 2010


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 yet git svn info -- 
revision... So, I guess we should wait for this one...

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 ?

Just want to make sure, this could be an "expected" behavior...

Arnaud

On Apr 9, 2010, at 11:14 AM, David Cole wrote:

> 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 usage is new and upcoming on many projects nowadays, I expect  
> that some git supporting additions to the CMake Modules directory  
> are in order. Feel free to bounce ideas around here on the list.  
> There is no significant support for git (or hg or bzr) in there yet.  
> It needs to be added. Patches, as always, are welcome.
>
> But.... I think the Subversion stuff should remain focused on svn  
> and that any git svn support should come in new git-aware Modules in  
> the future.
>
>
> HTH,
> David
>
>
> On Fri, Apr 9, 2010 at 10:55 AM, Arnaud Gelas <arnaud_gelas at hms.harvard.edu 
> > wrote:
> 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 is not a  
> working copy.
>
> First, is there anyway to get the svn revision number using git svn?  
> and thus add a new macro (or modify the existing one)?
>
> Else, could we change FindSubversion.cmake line 70 SEND_ERROR by  
> STATUS and return 0, in such a case?
>
> Thanks for your answer,
> Arnaud
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100409/17695511/attachment.htm>


More information about the CMake mailing list