| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-3.4 required=5.0 tests=BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,TW_SV |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <50229A81.4010802@acm.org> |
| Date: | Wed, 08 Aug 2012 09:57:37 -0700 |
| From: | David Rothenberger <daveroth AT acm DOT org> |
| User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
| MIME-Version: | 1.0 |
| To: | cygwin <cygwin AT cygwin DOT com> |
| Subject: | Re: CygWin SVN should identify as CygWin |
| References: | <5020CEC7 DOT 3010703 AT softwareag DOT com> |
| In-Reply-To: | <5020CEC7.3010703@softwareag.com> |
| X-IsSubscribed: | yes |
| Reply-To: | cygwin AT cygwin DOT com |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 8/7/2012 1:16 AM, Jochen Wiedmann wrote:
> from what I can tell, a user of CygWin SVN has no possibilities to be
> aware of the fact that it is indeed CygWin SVN, and not another program.
> This is the root cause for problems like
>
> http://jira.codehaus.org/browse/SCM-213
As the volunteer Cygwin Subversion packager, I guess I should chime in here.
I'm not going to customize the --version string to indicate SVN is
Cygwin. I have no idea if other tools or scripts are parsing this, so
I'm not going to make it different from what --version reports on all
other platforms.
As others have mentioned, there are several other solutions, such as
looking at the output of "which svn". (If it says /usr/bin/svn, it's
Cygwin.) It is also possible to do a functionality test, e.g. by looking
at the output of "svn info /tmp".
Another possibility is to use Subversion bindings instead of the CLI, as
others have mentioned. For Java apps, there is also SVNKit, a 100% Java
subversion library implementation.
Regarding the problem with Maven you referenced, a better solution (and
one suggested in the comments) is to add an option to Maven so one can
configure which svn binary is used. Failing that, one can easily write a
wrapper script for Maven that will put a native svn binary ahead of the
Cygwin one in the path.
--
David Rothenberger ---- daveroth AT acm DOT org
Ryan's Law:
Make three correct guesses consecutively
and you will establish yourself as an expert.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |