From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Keir Fraser <keir@xen.org>,
Marek Marczykowski <marmarek@invisiblethingslab.com>,
Jan Beulich <jbeulich@suse.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] scmversion: Improve svn interaction.
Date: Thu, 1 Aug 2013 16:48:47 +0100 [thread overview]
Message-ID: <51FA835F.6050100@citrix.com> (raw)
In-Reply-To: <1375371857.7382.133.camel@kazak.uk.xensource.com>
On 01/08/13 16:44, Ian Campbell wrote:
> On Thu, 2013-08-01 at 13:45 +0100, Andrew Cooper wrote:
>> Prevent running svn if .svn is not found; some versions of svn will
>> unconditionally create it.
> I was kind of hoping "improve" might mean "delete" ;-)
>
> We must have inherited this from the Linux version. I can't imagine any
> reason why you would ever have wanted to import Xen (or Linux for that
> matter) into a svn tree.
>
> Ian.
And guess where we found the svn bug ;-)
I will gladly delete the svn stuff if wanted, but figured this was
slightly neater and more friendly to people.
~Andrew
>
>> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
>> CC: Marek Marczykowski <marmarek@invisiblethingslab.com>
>> CC: Keir Fraser <keir@xen.org>
>> CC: Jan Beulich <jbeulich@suse.com>
>> CC: Ian Campbell <ian.campbell@citrix.com>
>> CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
>> ---
>> xen/tools/scmversion | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/xen/tools/scmversion b/xen/tools/scmversion
>> index b0c3b95..ccc6334 100755
>> --- a/xen/tools/scmversion
>> +++ b/xen/tools/scmversion
>> @@ -77,7 +77,7 @@ scm_version()
>> fi
>>
>> # Check for svn and a svn repo.
>> - if rev=`LANG= LC_ALL= LC_MESSAGES=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then
>> + if test -d .svn && rev=`LANG= LC_ALL= LC_MESSAGES=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then
>> rev=`echo $rev | awk '{print $NF}'`
>> printf -- 'svn:%s' "$rev"
>>
>
prev parent reply other threads:[~2013-08-01 15:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 12:45 [PATCH] scmversion: Improve svn interaction Andrew Cooper
2013-08-01 15:44 ` Ian Campbell
2013-08-01 15:48 ` Andrew Cooper [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51FA835F.6050100@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=marmarek@invisiblethingslab.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.