You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by baz themail <ba...@gmail.com> on 2009/06/22 22:32:47 UTC
is there an svn command to return the latest revision from the repo
with addition scripts?
Hi,
Is there an svn command that return the current revision number of the repo?
For example, svn revision http://svn/test, and return the current revision
of the http://svn/test?
Thanks.
A.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364325
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: is there an svn command to return the latest revision from the
repo with addition scripts?
Posted by Andy Levy <an...@gmail.com>.
On Mon, Jun 22, 2009 at 20:35, baz themail<ba...@gmail.com> wrote:
> Thanks for replying.
>
> "svn info" or "svn log -l 1" will give too much information. I just want the
> revision number, one number. Is there such a command or i need to do
> something like awk/sed/others?
The output of all svn commands is designed to be easily parsed. Parse
the output of svn info.
P.S. Please stop top-posting.
> On Mon, Jun 22, 2009 at 4:14 PM, Menschel, Bob [HDS]
> <Bo...@hdsupply.com> wrote:
>>
>> Does svn info http://svn/test do what you want?
>>
>>
>> Bob Menschel
>> Lead Systems Engineer
>> HD Supply, Repair & Remodel
>> 1695 Eureka Road
>> Roseville, CA 95661
>> Phone: 916-751-2329
>> Fax: 866-504-2857
>> email: Bob.Menschel@hdsupply.com
>> website: http://www.HDSRR.com
>>
>> One Team, Driving Customer Success and Value Creation
>>
>> CONFIDENTIALITY NOTICE:
>> This message is for intended addressee(s) only and may contain
>> confidential, proprietary or privileged information, exempt from disclosure,
>> and subject to terms at: http://www.hdsupply.com/email/.
>>
>>
>> ________________________________
>> From: baz themail [mailto:bazthemail@gmail.com]
>> Sent: Monday, June 22, 2009 3:33 PM
>> To: users@subversion.tigris.org
>> Subject: is there an svn command to return the latest revision from the
>> repo with addition scripts?
>>
>> Hi,
>>
>> Is there an svn command that return the current revision number of the
>> repo?
>>
>> For example, svn revision http://svn/test, and return the current revision
>> of the http://svn/test?
>>
>> Thanks.
>>
>> A.
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364360
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: is there an svn command to return the latest revision from the
repo with addition scripts?
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 23, 2009, at 08:07, DW Dennis Wheeler wrote:
> also try 'svnversion -c'
Yes, but svnversion is for a working copy; the OP wanted something
that worked with a URL.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364583
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: is there an svn command to return the latest revision from the
repo with addition scripts?
Posted by DW Dennis Wheeler <dw...@ag.com>.
also try 'svnversion -c'
> -----Original Message-----
> From: Andrey Repin [mailto:anrdaemon@freemail.ru]
> Sent: Tuesday, June 23, 2009 12:01 AM
> To: baz themail; users@subversion.tigris.org
> Subject: Re: is there an svn command to return the latest
> revision from the repo with addition scripts?
>
> Greetings, baz themail!
>
> > "svn info" or "svn log -l 1" will give too much information. I just
> > want the revision number, one number. Is there such a command or i
> > need to do something like awk/sed/others?
>
> svn info URL | grep "^Revision:" | sed -E
> "s#^Revision:[[:space:]]+([[:digit:]]+)#\1#" > ~/latest
>
> Or if you have perl-enabled grep, it's even simpler:
>
> svn info URL | grep -oP "((?<=Revision: )\d+)"
>
>
> --
> WBR,
> Andrey Repin (anrdaemon@freemail.ru) 23.06.2009, <10:54>
>
> Sorry for my terrible english...
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&
> dsMessageId=2364411
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe@subversion.tigris.org].
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364475
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: is there an svn command to return the latest revision from the
repo with addition scripts?
Posted by baz themail <ba...@gmail.com>.
Thank you for all the replies.
On Wed, Jun 24, 2009 at 6:20 AM, Engebakken Geir <ge...@edb.com>wrote:
> Or maybe this is easier too :
>
> svn info URL| grep ^Revision: | cut -f2 -d' '
>
>
>
> Geir
>
> -----Original Message-----
> From: Andrey Repin [mailto:anrdaemon@freemail.ru]
> Sent: 23. juni 2009 09:01
> To: baz themail; users@subversion.tigris.org
> Subject: Re: is there an svn command to return the latest revision from the
> repo with addition scripts?
>
> Greetings, baz themail!
>
> > "svn info" or "svn log -l 1" will give too much information. I just want
> the
> > revision number, one number. Is there such a command or i need to do
> > something like awk/sed/others?
>
> svn info URL | grep "^Revision:" | sed -E
> "s#^Revision:[[:space:]]+([[:digit:]]+)#\1#" > ~/latest
>
> Or if you have perl-enabled grep, it's even simpler:
>
> svn info URL | grep -oP "((?<=Revision: )\d+)"
>
>
> --
> WBR,
> Andrey Repin (anrdaemon@freemail.ru) 23.06.2009, <10:54>
>
> Sorry for my terrible english...
>
> ------------------------------------------------------
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364411
>
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe@subversion.tigris.org].
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2365444
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: is there an svn command to return the latest revision from the
repo with addition scripts?
Posted by Geir Engebakken <ge...@edb.com>.
Or maybe this is easier too :
svn info URL| grep ^Revision: | cut -f2 -d' '
Geir
-----Original Message-----
From: Andrey Repin [mailto:anrdaemon@freemail.ru]
Sent: 23. juni 2009 09:01
To: baz themail; users@subversion.tigris.org
Subject: Re: is there an svn command to return the latest revision from the repo with addition scripts?
Greetings, baz themail!
> "svn info" or "svn log -l 1" will give too much information. I just want the
> revision number, one number. Is there such a command or i need to do
> something like awk/sed/others?
svn info URL | grep "^Revision:" | sed -E "s#^Revision:[[:space:]]+([[:digit:]]+)#\1#" > ~/latest
Or if you have perl-enabled grep, it's even simpler:
svn info URL | grep -oP "((?<=Revision: )\d+)"
--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 23.06.2009, <10:54>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364411
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364928
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: is there an svn command to return the latest revision from the
repo with addition scripts?
Posted by Andrey Repin <an...@freemail.ru>.
Greetings, baz themail!
> "svn info" or "svn log -l 1" will give too much information. I just want the
> revision number, one number. Is there such a command or i need to do
> something like awk/sed/others?
svn info URL | grep "^Revision:" | sed -E "s#^Revision:[[:space:]]+([[:digit:]]+)#\1#" > ~/latest
Or if you have perl-enabled grep, it's even simpler:
svn info URL | grep -oP "((?<=Revision: )\d+)"
--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 23.06.2009, <10:54>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364411
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: is there an svn command to return the latest revision from the
repo with addition scripts?
Posted by baz themail <ba...@gmail.com>.
Thanks for replying.
"svn info" or "svn log -l 1" will give too much information. I just want the
revision number, one number. Is there such a command or i need to do
something like awk/sed/others?
On Mon, Jun 22, 2009 at 4:14 PM, Menschel, Bob [HDS] <
Bob.Menschel@hdsupply.com> wrote:
> Does svn info http://svn/test do what you want?
>
>
> Bob Menschel
> Lead Systems Engineer
> HD Supply, Repair & Remodel
> 1695 Eureka Road
> Roseville, CA 95661
> Phone: 916-751-2329
> Fax: 866-504-2857
> email: *Bob.Menschel@hdsupply.com* <Bo...@hdsupply.com>
> website: http://www.HDSRR.com <http://www.hdsrr.com/>
>
> *One Team, Driving Customer Success and Value Creation***
>
> *CONFIDENTIALITY NOTICE:*
> This message is for intended addressee(s) only and may contain
> confidential, proprietary or privileged information, exempt from disclosure,
> and subject to terms at:* http://www.hdsupply.com/email/*.
>
>
> ------------------------------
> *From:* baz themail [mailto:bazthemail@gmail.com]
> *Sent:* Monday, June 22, 2009 3:33 PM
> *To:* users@subversion.tigris.org
> *Subject:* is there an svn command to return the latest revision from the
> repo with addition scripts?
>
> Hi,
>
> Is there an svn command that return the current revision number of the
> repo?
>
> For example, svn revision http://svn/test, and return the current revision
> of the http://svn/test?
>
> Thanks.
>
> A.
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364358
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: is there an svn command to return the latest revision from the
repo with addition scripts?
Posted by "Menschel, Bob [HDS]" <Bo...@hdsupply.com>.
Does svn info http://svn/test <http://svn/test> do what you want?
Bob Menschel
Lead Systems Engineer
HD Supply, Repair & Remodel
1695 Eureka Road
Roseville, CA 95661
Phone: 916-751-2329
Fax: 866-504-2857
email: Bob.Menschel@hdsupply.com <ma...@hdsupply.com>
website: http://www.HDSRR.com <http://www.hdsrr.com/>
One Team, Driving Customer Success and Value Creation
CONFIDENTIALITY NOTICE:
This message is for intended addressee(s) only and may contain
confidential, proprietary or privileged information, exempt from
disclosure, and subject to terms at: http://www.hdsupply.com/email/.
________________________________
From: baz themail [mailto:bazthemail@gmail.com]
Sent: Monday, June 22, 2009 3:33 PM
To: users@subversion.tigris.org
Subject: is there an svn command to return the latest revision from the
repo with addition scripts?
Hi,
Is there an svn command that return the current revision number of the
repo?
For example, svn revision http://svn/test, and return the current
revision of the http://svn/test?
Thanks.
A.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364341
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].