Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

svnpath(1) [debian man page]

SVNPATH(1)																SVNPATH(1)

NAME
svnpath - output svn url with support for tags and branches SYNOPSIS
svnpath svnpath tags svnpath branches svnpath trunk DESCRIPTION
svnpath is intended to be run in a Subversion working copy. In its simplest usage, svnpath with no parameters outputs the svn url for the repository associated with the working copy. If a parameter is given, svnpath attempts to instead output the url that would be used for the tags, branches, or trunk. This will only work if it's run in the top-level directory that is subject to tagging or branching. For example, if you want to tag what's checked into Subversion as version 1.0, you could use a command like this: svn cp $(svnpath) $(svnpath tags)/1.0 That's much easier than using svn info to look up the repository url and manually modifying it to derive the url to use for the tag, and typing in something like this: svn cp svn+ssh://my.server.example/svn/project/trunk svn+ssh://my.server.example/svn/project/tags/1.0 svnpath uses a simple heuristic to convert between the trunk, tags, and branches paths. It replaces the first occurrence of trunk, tags, or branches with the name of what you're looking for. This will work ok for most typical Subversion repository layouts. If you have an atypical layout and it does not work, you can add a ~/.svnpath file. This file is perl code, which can modify the path in $url. For example, the author uses this file: #!/usr/bin/perl # svnpath personal override file # For d-i I sometimes work from a full d-i tree branch. Remove that from # the path to get regular tags or branches directories. $url=~s!d-i/(rc|beta)[0-9]+/!!; $url=~s!d-i/sarge/!!; 1 LICENSE
GPL version 2 or later AUTHOR
Joey Hess <joey@kitenet.net> Debian Utilities 2013-12-23 SVNPATH(1)

Check Out this Related Man Page

SVNPATH(1)																SVNPATH(1)

NAME
svnpath - output svn url with support for tags and branches SYNOPSIS
svnpath svnpath tags svnpath branches svnpath trunk DESCRIPTION
svnpath is intended to be run in a Subversion working copy. In its simplest usage, svnpath with no parameters outputs the svn url for the repository associated with the working copy. If a parameter is given, svnpath attempts to instead output the url that would be used for the tags, branches, or trunk. This will only work if it's run in the top-level directory that is subject to tagging or branching. For example, if you want to tag what's checked into Subversion as version 1.0, you could use a command like this: svn cp $(svnpath) $(svnpath tags)/1.0 That's much easier than using svn info to look up the repository url and manually modifying it to derive the url to use for the tag, and typing in something like this: svn cp svn+ssh://my.server.example/svn/project/trunk svn+ssh://my.server.example/svn/project/tags/1.0 svnpath uses a simple heuristic to convert between the trunk, tags, and branches paths. It replaces the first occurrence of trunk, tags, or branches with the name of what you're looking for. This will work ok for most typical Subversion repository layouts. If you have an atypical layout and it does not work, you can add a ~/.svnpath file. This file is perl code, which can modify the path in $url. For example, the author uses this file: #!/usr/bin/perl # svnpath personal override file # For d-i I sometimes work from a full d-i tree branch. Remove that from # the path to get regular tags or branches directories. $url=~s!d-i/(rc|beta)[0-9]+/!!; $url=~s!d-i/sarge/!!; 1 LICENSE
GPL version 2 or later AUTHOR
Joey Hess <joey@kitenet.net> Debian Utilities 2013-12-23 SVNPATH(1)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

this helps me out big time

ever since i started playing with unix at work i have found all kinds of helpful tools that my companie has added into our /usr/bin/ this is the one that helped the most """"""ldr""""""" #!/bin/sh # # @(#) %filespec: ldr-2 % %date_modified: Wed Sep 6 09:54:07 2000 % # # ... (4 Replies)
Discussion started by: jerzey4life
4 Replies

2. Shell Programming and Scripting

Cronjob: permission denied

Hello everybody, I will be very thankfull for any help to solve this problem. My project installed in subfolder and url is mysite.mydomain.com. Can't setup crontab for this project, error: " /bin/sh: /usr/bin/GET: Permission denied ". But it is working fine for root directory installation. ... (16 Replies)
Discussion started by: Alano
16 Replies

3. UNIX and Linux Applications

svn diff failed (no such file or directory)

I'm on ubuntu fiesty using svn as version control and gvim as my IDE. i like to review changes to files before checking them in. at some point in my life i used " svn diff {path}/{filename} " this now returns Index: {path}/{file}... (5 Replies)
Discussion started by: manic
5 Replies

4. Shell Programming and Scripting

Whole word with sed?

Hi experts, need a help in SED file=counter.c module=abcd i=http://svn.company.com/svn/${module}/trunk/counter/${file} When i do echo ${i}| sed "s|http://svn.company.com/svn/${module}/trunk/||g"| sed "s|${file}||g" it results in ounter.c (5 Replies)
Discussion started by: ganga.dharan
5 Replies

5. Shell Programming and Scripting

Sorting By Column

I have almost got my unix program working that im working on as a personal project, my file tvs.txt has around 500 records so this would make it alot easier for me to find specific information. I have a file called tvs.txt, I'm using pico to edit the files and i want to be able to sort on the a... (6 Replies)
Discussion started by: john123
6 Replies

6. Shell Programming and Scripting

Subversion and the GNOME Keyring

The reason I'm posting this message is because I've written a Korn shell script that will be of use to those people who use the Subversion client on Linux or Solaris and would like their passwords to be encrypted. I realise this isn't strictly a question or matter concerning shell scripts, but as... (4 Replies)
Discussion started by: cambridge
4 Replies

7. UNIX for Dummies Questions & Answers

Career path help

I am working in a company in which my work includes working on Linux nodes. The "uname -arv" command outputs - "Linux clx28ap01 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux". I generally use various command to stop/start the servers, checking space,... (7 Replies)
Discussion started by: csrohit
7 Replies

8. UNIX for Advanced & Expert Users

sendmail error - 452 4.3.1 Insufficient system resources

Hi All, I am using svnnotify (which is available on net) script to send svn commit notification. Everything was working fine up to yesterday but from yesterday i started seeing error. 29CD01FCE44 7228 Thu Apr 5 11:11:51 apache@vm0001.host.com (host mail.mailserver.com said: 452... (6 Replies)
Discussion started by: vishal_vsh1
6 Replies

9. Shell Programming and Scripting

Continuous checking of a file

I have a requirement like this... I want to go to a particular server for which i have acess .I want to do a ssh to that server from one server and check if a file is theer or not..and i need the script to chcek continuosly till it finds the file.When it finds the file i want it to come out... (9 Replies)
Discussion started by: kanta_bhakti
9 Replies

10. UNIX for Dummies Questions & Answers

How to modify an output?

I have a list XPAR XPAR XPAR , XPAR , , XPAR ,1, XPAR 196 XPAR 95 XPAR 95,77 This has space and tabs on the second row. I would like it to look like XPAR 1, 196, 95, 77 But I always get the below because of the spaces above. , , ,1, 196 95 95,77 I use... (9 Replies)
Discussion started by: priyanka.premra
9 Replies

11. Programming

Beginning svn

I had hard time to understand svn, and asked my admin who said I was over thinking and recommend remember the 5~6 commands to do as told. But I am so lost when the situation changed a little bit. For example, I am in my local box under my project folder: /home/yifangt/svn/ where there are two... (5 Replies)
Discussion started by: yifangt
5 Replies

12. HP-UX

sed help with underscore problems

Hello, I have spent a couple of hours trying to answer this myself, so forgive me if the answer is simple but I have tried. I have a text file generated from svn log output which contains a list of files. Two regexps im using are * and * They both work but some lines has a mixture... (7 Replies)
Discussion started by: YogaBija
7 Replies

13. UNIX for Advanced & Expert Users

Subversion reported an error

Hi I am svn adminstator and using svn verion 1.6 it is on linux actually there is total 4 repositories in svn, i can access 3 repository (I can perform svn admin work) but for one repository Acces to '!svn/ver 488519' forbidden. it is suddenly happening. i will really appriciete if some one... (5 Replies)
Discussion started by: Josh24
5 Replies

14. What is on Your Mind?

Posts Converted to Divs - Overflow Works - Now Testing

Hey, Success! I have converted the posts (each of the main posts) from table tags to div tags and the problem with the scroll bar and code tags is fixed, as I predicted (Yay!). Now I'm testing this (only I see the new results because the new code is restricted to my userid) but I would... (27 Replies)
Discussion started by: Neo
27 Replies