1SVNPATH(1)                                                          SVNPATH(1)
2
3
4

NAME

6       svnpath - output svn url with support for tags and branches
7

SYNOPSIS

9       svnpath
10
11       svnpath tags
12
13       svnpath branches
14
15       svnpath trunk
16

DESCRIPTION

18       svnpath is intended to be run in a Subversion working copy.
19
20       In its simplest usage, svnpath with no parameters outputs the svn url
21       for the repository associated with the working copy.
22
23       If a parameter is given, svnpath attempts to instead output the url
24       that would be used for the tags, branches, or trunk. This will only
25       work if it's run in the top-level directory that is subject to tagging
26       or branching.
27
28       For example, if you want to tag what's checked into Subversion as
29       version 1.0, you could use a command like this:
30
31         svn cp $(svnpath) $(svnpath tags)/1.0
32
33       That's much easier than using svn info to look up the repository url
34       and manually modifying it to derive the url to use for the tag, and
35       typing in something like this:
36
37         svn cp svn+ssh://my.server.example/svn/project/trunk svn+ssh://my.server.example/svn/project/tags/1.0
38
39       svnpath uses a simple heuristic to convert between the trunk, tags, and
40       branches paths. It replaces the first occurrence of trunk, tags, or
41       branches with the name of what you're looking for. This will work ok
42       for most typical Subversion repository layouts.
43
44       If you have an atypical layout and it does not work, you can add a
45       ~/.svnpath file. This file is perl code, which can modify the path in
46       $url.  For example, the author uses this file:
47
48        #!/usr/bin/perl
49        # svnpath personal override file
50
51        # For d-i I sometimes work from a full d-i tree branch. Remove that from
52        # the path to get regular tags or branches directories.
53        $url=~s!d-i/(rc|beta)[0-9]+/!!;
54        $url=~s!d-i/sarge/!!;
55        1
56

LICENSE

58       GPL version 2 or later
59

AUTHOR

61       Joey Hess <joey@kitenet.net>
62
63
64
65Debian Utilities                  2021-08-19                        SVNPATH(1)
Impressum