You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Alexander Wahl <ma...@alexproject.de> on 2009/09/03 10:14:37 UTC

Export Code and do something

Hello,

we "tag" stable versions of our Code with svn. Code uploaded to the
customers website is only exported from "tags"-directory in svn. Want I
want to do is: whenever code is exported from "tags" I want to replace a
string in a config-file to the actual "tag"-revision.

It's purpose is, to know in the future which Rev. is on the customers site.
I can do that with keywords $REV$, but this can only be done client-side
and I am search for a mechanism which I can implement on the svn-server
side.

How to you "mark" your code which is deployed to the customer?

Thanks a lot for your hints and answers.

Alex

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390584

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Export Code and do something

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 3, 2009, at 06:30, Alexander Wahl wrote:

> On Thu, 3 Sep 2009 15:21:27 +0400, Andrey Repin wrote:
>
>>> It's purpose is, to know in the future which Rev. is on the  
>>> customers
>>> site.
>>> I can do that with keywords $REV$, but this can only be done  
>>> client-side
>>> and I am search for a mechanism which I can implement on the svn- 
>>> server
>>> side.
>>
>> I can remember I saw full repository path in files exported from SVN.
>> Dig the tags deeper? :)
>
> Sorry, I do not understand what you mean. (Dig the tags deeper?) Is  
> this a
> question ?

Alexander, you stated that using Subversion keyword substitution was  
unsatisfactory because it happens on the client side and you want a  
server side mechanism. I think Andrey was pointing out that this  
doesn't need to be a problem. If you have Subversion keywords like $Rev 
$ or $Id$ in your files, and you run "svn export", those keys will be  
expanded for you on the client side. So these can be used to later  
identify the version of files you sent.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390635

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Export Code and do something

Posted by Andrey Repin <an...@freemail.ru>.
Greetings, Alexander Wahl!

>> I can remember I saw full repository path in files exported from SVN.
>> Dig the tags deeper? :)

> Sorry, I do not understand what you mean. (Dig the tags deeper?) Is this a
> question ? 

Sorry, i've used wrong word. It's called Keyword substitution as pointed by
Ryan, the one you need is HeadURL (URL as a shortcut)


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 03.09.2009, <22:15>

Sorry for my terrible english...

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390795

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Export Code and do something

Posted by Alexander Wahl <ma...@alexproject.de>.
Hello Andrey,
> I can remember I saw full repository path in files exported from SVN.
> Dig the tags deeper? :)

Sorry, I do not understand what you mean. (Dig the tags deeper?) Is this a
question ? 


On Thu, 3 Sep 2009 15:21:27 +0400, Andrey Repin <an...@freemail.ru>
wrote:
> Greetings, Alexander Wahl!
> 
>> we "tag" stable versions of our Code with svn. Code uploaded to the
>> customers website is only exported from "tags"-directory in svn. Want I
>> want to do is: whenever code is exported from "tags" I want to replace a
>> string in a config-file to the actual "tag"-revision.
> 
>> It's purpose is, to know in the future which Rev. is on the customers
> site.
>> I can do that with keywords $REV$, but this can only be done client-side
>> and I am search for a mechanism which I can implement on the svn-server
>> side.
> 
>> How to you "mark" your code which is deployed to the customer?
> 
> I can remember I saw full repository path in files exported from SVN.
> Dig the tags deeper? :)
> 
> 
> --
> WBR,
>  Andrey Repin (anrdaemon@freemail.ru) 03.09.2009, <15:20>
> 
> Sorry for my terrible english...
> 
> ------------------------------------------------------
>
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390604
> 
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe@subversion.tigris.org].
-- 
----------------------------------------------------------------------
a l e x p r o j e c t
==== web architecture

Alexander Wahl
Dipl. Informationswirt(FH)
Achalmstr. 17
73553 Alfdorf, Germany

cellphone: +49 (0)179-7891005
web      : www.alexproject.de
mail     : mail@alexproject.de
----------------------------------------------------------------------
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message, and
notify us immediately. If you or your employer does not consent to Internet
E-Mail messages of this kind, please advise us immediately. Opinions,
conclusions and other information expressed in this message are not given
or endorsed by my firm or employer unless otherwise indicated by an
authorized representative independent of this message.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390605

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Export Code and do something

Posted by Andrey Repin <an...@freemail.ru>.
Greetings, Alexander Wahl!

> we "tag" stable versions of our Code with svn. Code uploaded to the
> customers website is only exported from "tags"-directory in svn. Want I
> want to do is: whenever code is exported from "tags" I want to replace a
> string in a config-file to the actual "tag"-revision.

> It's purpose is, to know in the future which Rev. is on the customers site.
> I can do that with keywords $REV$, but this can only be done client-side
> and I am search for a mechanism which I can implement on the svn-server
> side.

> How to you "mark" your code which is deployed to the customer?

I can remember I saw full repository path in files exported from SVN.
Dig the tags deeper? :)


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 03.09.2009, <15:20>

Sorry for my terrible english...

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390604

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Export Code and do something

Posted by Alexander Wahl <ma...@alexproject.de>.
<b2...@mail.gmail.com>
<9d...@www.alexproject.de>
<b2...@mail.gmail.com>
<9a...@www.alexproject.de> <b2...@mail.gmail.com>
Message-ID: <2a...@www.alexproject.de>
X-Sender: mail@alexproject.de
Received: from intra.diacc.de [62.152.178.186] with HTTP/1.1 (POST); Thu, 03
	Sep 2009 14:59:19 +0200
User-Agent: RoundCube Webmail/0.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit



On Thu, 3 Sep 2009 08:56:14 -0400, Andy Levy <an...@gmail.com> wrote:
> Please don't top-post.
Sorry. Also rookie with mailinglists. Try to avoid this in the future.
>
> On Thu, Sep 3, 2009 at 08:50, Alexander Wahl<ma...@alexproject.de> wrote:
>> Hi Andy,
>>
>> thanks. Script-writing is no problem. My problem is how to tell
> subversion
>> that this particular script has to be called if user exports something
> from
>> the tags directory?  I am still rookie with subversion :-)
>
> Do it the other way around. You're not going to "tell" Subversion
> anything (you can't), you're going to tell your users to always use
> your export script instead of a plain svn export.

Thanks. That was that hint i needed. If I can tell svn to to something as
someone makes an export I rather write a script that does the export + the
replacements for me. Thanks a lot.
>
>> On Thu, 3 Sep 2009 08:38:11 -0400, Andy Levy <an...@gmail.com>
> wrote:
>>> On Thu, Sep 3, 2009 at 07:03, Alexander Wahl<ma...@alexproject.de>
> wrote:
>>>> On Thu, 3 Sep 2009 06:35:08 -0400, Andy Levy <an...@gmail.com>
>>> wrote:
>>>>> On Thu, Sep 3, 2009 at 06:14, Alexander Wahl<ma...@alexproject.de>
>>> wrote:
>>>>>> Hello,
>>>>>>
>>>>>> we "tag" stable versions of our Code with svn. Code uploaded to the
>>>>>> customers website is only exported from "tags"-directory in svn.
> Want
>>> I
>>>>>> want to do is: whenever code is exported from "tags" I want to
> replace
>>> a
>>>>>> string in a config-file to the actual "tag"-revision.
>>>>>>
>>>>>> It's purpose is, to know in the future which Rev. is on the
> customers
>>>>> site.
>>>>>> I can do that with keywords $REV$, but this can only be done
>>> client-side
>>>>>> and I am search for a mechanism which I can implement on the
>>> svn-server
>>>>>> side.
>>>>>>
>>>>>> How to you "mark" your code which is deployed to the customer?
>>>>>
>>>>> Add the following to your export process.
>>>>> http://subversion.tigris.org/faq.html#version-value-in-source
>>>>>
>>>>
>>>> Thanks for the hint. We do not use any deployment tool like phing,ant
> or
>>>> maven. So we do only a "svn export".
>>>
>>> So write a script around svn export that does it.
>>>
>>> ------------------------------------------------------
>>>
>>
>
http://subversion.tigris.org/ds/viewMessage.do?dsForumId65&dsMessageId#90624
>>>
>>> To unsubscribe from this discussion, e-mail:
>>> [users-unsubscribe@subversion.tigris.org].
>> --
>> ----------------------------------------------------------------------
>> a l e x p r o j e c t
>> ==== web architecture
>>
>> Alexander Wahl
>> Dipl. Informationswirt(FH)
>> Achalmstr. 17
>> 73553 Alfdorf, Germany
>>
>> cellphone: +49 (0)179-7891005
>> web      : www.alexproject.de
>> mail     : mail@alexproject.de
>> ----------------------------------------------------------------------
>> Privileged/Confidential Information may be contained in this message. If
>> you are not the addressee indicated in this message (or responsible for
>> delivery of the message to such person), you may not copy or deliver
> this
>> message to anyone. In such case, you should destroy this message, and
>> notify us immediately. If you or your employer does not consent to
> Internet
>> E-Mail messages of this kind, please advise us immediately. Opinions,
>> conclusions and other information expressed in this message are not
> given
>> or endorsed by my firm or employer unless otherwise indicated by an
>> authorized representative independent of this message.
>>
>> ------------------------------------------------------
>>
>
http://subversion.tigris.org/ds/viewMessage.do?dsForumId65&dsMessageId#90628
>>
>> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe@subversion.tigris.org].
>>
--
----------------------------------------------------------------------
a l e x p r o j e c t
==== web architecture

Alexander Wahl
Dipl. Informationswirt(FH)
Achalmstr. 17
73553 Alfdorf, Germany

cellphone: +49 (0)179-7891005
web      : www.alexproject.de
mail     : mail@alexproject.de
----------------------------------------------------------------------
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message, and
notify us immediately. If you or your employer does not consent to Internet
E-Mail messages of this kind, please advise us immediately. Opinions,
conclusions and other information expressed in this message are not given
or endorsed by my firm or employer unless otherwise indicated by an
authorized representative independent of this message.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390636

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Export Code and do something

Posted by Andy Levy <an...@gmail.com>.
Please don't top-post.

On Thu, Sep 3, 2009 at 08:50, Alexander Wahl<ma...@alexproject.de> wrote:
> Hi Andy,
>
> thanks. Script-writing is no problem. My problem is how to tell subversion
> that this particular script has to be called if user exports something from
> the tags directory?  I am still rookie with subversion :-)

Do it the other way around. You're not going to "tell" Subversion
anything (you can't), you're going to tell your users to always use
your export script instead of a plain svn export.

> On Thu, 3 Sep 2009 08:38:11 -0400, Andy Levy <an...@gmail.com> wrote:
>> On Thu, Sep 3, 2009 at 07:03, Alexander Wahl<ma...@alexproject.de> wrote:
>>> On Thu, 3 Sep 2009 06:35:08 -0400, Andy Levy <an...@gmail.com>
>> wrote:
>>>> On Thu, Sep 3, 2009 at 06:14, Alexander Wahl<ma...@alexproject.de>
>> wrote:
>>>>> Hello,
>>>>>
>>>>> we "tag" stable versions of our Code with svn. Code uploaded to the
>>>>> customers website is only exported from "tags"-directory in svn. Want
>> I
>>>>> want to do is: whenever code is exported from "tags" I want to replace
>> a
>>>>> string in a config-file to the actual "tag"-revision.
>>>>>
>>>>> It's purpose is, to know in the future which Rev. is on the customers
>>>> site.
>>>>> I can do that with keywords $REV$, but this can only be done
>> client-side
>>>>> and I am search for a mechanism which I can implement on the
>> svn-server
>>>>> side.
>>>>>
>>>>> How to you "mark" your code which is deployed to the customer?
>>>>
>>>> Add the following to your export process.
>>>> http://subversion.tigris.org/faq.html#version-value-in-source
>>>>
>>>
>>> Thanks for the hint. We do not use any deployment tool like phing,ant or
>>> maven. So we do only a "svn export".
>>
>> So write a script around svn export that does it.
>>
>> ------------------------------------------------------
>>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390624
>>
>> To unsubscribe from this discussion, e-mail:
>> [users-unsubscribe@subversion.tigris.org].
> --
> ----------------------------------------------------------------------
> a l e x p r o j e c t
> ==== web architecture
>
> Alexander Wahl
> Dipl. Informationswirt(FH)
> Achalmstr. 17
> 73553 Alfdorf, Germany
>
> cellphone: +49 (0)179-7891005
> web      : www.alexproject.de
> mail     : mail@alexproject.de
> ----------------------------------------------------------------------
> Privileged/Confidential Information may be contained in this message. If
> you are not the addressee indicated in this message (or responsible for
> delivery of the message to such person), you may not copy or deliver this
> message to anyone. In such case, you should destroy this message, and
> notify us immediately. If you or your employer does not consent to Internet
> E-Mail messages of this kind, please advise us immediately. Opinions,
> conclusions and other information expressed in this message are not given
> or endorsed by my firm or employer unless otherwise indicated by an
> authorized representative independent of this message.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390628
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390634

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Export Code and do something

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 3, 2009, at 07:50, Alexander Wahl wrote:

> thanks. Script-writing is no problem. My problem is how to tell  
> subversion
> that this particular script has to be called if user exports  
> something from
> the tags directory?  I am still rookie with subversion :-)

You don't tell Subversion that. Instead, you run your script directly,  
instead of running svn export directly.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390632

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Export Code and do something

Posted by Alexander Wahl <ma...@alexproject.de>.
Hi Andy,

thanks. Script-writing is no problem. My problem is how to tell subversion
that this particular script has to be called if user exports something from
the tags directory?  I am still rookie with subversion :-)

Alex.

On Thu, 3 Sep 2009 08:38:11 -0400, Andy Levy <an...@gmail.com> wrote:
> On Thu, Sep 3, 2009 at 07:03, Alexander Wahl<ma...@alexproject.de> wrote:
>> On Thu, 3 Sep 2009 06:35:08 -0400, Andy Levy <an...@gmail.com>
> wrote:
>>> On Thu, Sep 3, 2009 at 06:14, Alexander Wahl<ma...@alexproject.de>
> wrote:
>>>> Hello,
>>>>
>>>> we "tag" stable versions of our Code with svn. Code uploaded to the
>>>> customers website is only exported from "tags"-directory in svn. Want
> I
>>>> want to do is: whenever code is exported from "tags" I want to replace
> a
>>>> string in a config-file to the actual "tag"-revision.
>>>>
>>>> It's purpose is, to know in the future which Rev. is on the customers
>>> site.
>>>> I can do that with keywords $REV$, but this can only be done
> client-side
>>>> and I am search for a mechanism which I can implement on the
> svn-server
>>>> side.
>>>>
>>>> How to you "mark" your code which is deployed to the customer?
>>>
>>> Add the following to your export process.
>>> http://subversion.tigris.org/faq.html#version-value-in-source
>>>
>>
>> Thanks for the hint. We do not use any deployment tool like phing,ant or
>> maven. So we do only a "svn export".
> 
> So write a script around svn export that does it.
> 
> ------------------------------------------------------
>
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390624
> 
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe@subversion.tigris.org].
-- 
----------------------------------------------------------------------
a l e x p r o j e c t
==== web architecture

Alexander Wahl
Dipl. Informationswirt(FH)
Achalmstr. 17
73553 Alfdorf, Germany

cellphone: +49 (0)179-7891005
web      : www.alexproject.de
mail     : mail@alexproject.de
----------------------------------------------------------------------
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message, and
notify us immediately. If you or your employer does not consent to Internet
E-Mail messages of this kind, please advise us immediately. Opinions,
conclusions and other information expressed in this message are not given
or endorsed by my firm or employer unless otherwise indicated by an
authorized representative independent of this message.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390628

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Export Code and do something

Posted by Andy Levy <an...@gmail.com>.
On Thu, Sep 3, 2009 at 07:03, Alexander Wahl<ma...@alexproject.de> wrote:
> On Thu, 3 Sep 2009 06:35:08 -0400, Andy Levy <an...@gmail.com> wrote:
>> On Thu, Sep 3, 2009 at 06:14, Alexander Wahl<ma...@alexproject.de> wrote:
>>> Hello,
>>>
>>> we "tag" stable versions of our Code with svn. Code uploaded to the
>>> customers website is only exported from "tags"-directory in svn. Want I
>>> want to do is: whenever code is exported from "tags" I want to replace a
>>> string in a config-file to the actual "tag"-revision.
>>>
>>> It's purpose is, to know in the future which Rev. is on the customers
>> site.
>>> I can do that with keywords $REV$, but this can only be done client-side
>>> and I am search for a mechanism which I can implement on the svn-server
>>> side.
>>>
>>> How to you "mark" your code which is deployed to the customer?
>>
>> Add the following to your export process.
>> http://subversion.tigris.org/faq.html#version-value-in-source
>>
>
> Thanks for the hint. We do not use any deployment tool like phing,ant or
> maven. So we do only a "svn export".

So write a script around svn export that does it.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390624

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Export Code and do something

Posted by Alexander Wahl <ma...@alexproject.de>.
On Thu, 3 Sep 2009 06:35:08 -0400, Andy Levy <an...@gmail.com> wrote:
> On Thu, Sep 3, 2009 at 06:14, Alexander Wahl<ma...@alexproject.de> wrote:
>> Hello,
>>
>> we "tag" stable versions of our Code with svn. Code uploaded to the
>> customers website is only exported from "tags"-directory in svn. Want I
>> want to do is: whenever code is exported from "tags" I want to replace a
>> string in a config-file to the actual "tag"-revision.
>>
>> It's purpose is, to know in the future which Rev. is on the customers
> site.
>> I can do that with keywords $REV$, but this can only be done client-side
>> and I am search for a mechanism which I can implement on the svn-server
>> side.
>>
>> How to you "mark" your code which is deployed to the customer?
> 
> Add the following to your export process.
> http://subversion.tigris.org/faq.html#version-value-in-source
> 

Thanks for the hint. We do not use any deployment tool like phing,ant or
maven. So we do only a "svn export". Is there a possibility to implement
the string-replacements of der version.php file by a shell-hook?

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390600

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].


Re: Export Code and do something

Posted by Andy Levy <an...@gmail.com>.
On Thu, Sep 3, 2009 at 06:14, Alexander Wahl<ma...@alexproject.de> wrote:
> Hello,
>
> we "tag" stable versions of our Code with svn. Code uploaded to the
> customers website is only exported from "tags"-directory in svn. Want I
> want to do is: whenever code is exported from "tags" I want to replace a
> string in a config-file to the actual "tag"-revision.
>
> It's purpose is, to know in the future which Rev. is on the customers site.
> I can do that with keywords $REV$, but this can only be done client-side
> and I am search for a mechanism which I can implement on the svn-server
> side.
>
> How to you "mark" your code which is deployed to the customer?

Add the following to your export process.
http://subversion.tigris.org/faq.html#version-value-in-source

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390590

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].