Subversion_WC_INFO assumes an svn working copy tree, and it should remain so.<br><br>In the case of using git svn, you should not use Subversion_WC_* macros as you do not have an svn working copy tree...<br><br>The project code, if intending to support git svn checkouts, should be adapted accordingly.<br>
<br>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.<br>
<br>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.<br><br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Fri, Apr 9, 2010 at 10:55 AM, Arnaud Gelas <span dir="ltr"><<a href="mailto:arnaud_gelas@hms.harvard.edu">arnaud_gelas@hms.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi guys,<br>
<br>
I have recently mirrored one svn project on github, and I am trying to keep both version up to date using git svn.<br>
<br>
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.<br>
<br>
First, is there anyway to get the svn revision number using git svn? and thus add a new macro (or modify the existing one)?<br>
<br>
Else, could we change FindSubversion.cmake line 70 SEND_ERROR by STATUS and return 0, in such a case?<br>
<br>
Thanks for your answer,<br>
Arnaud<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>