svn-inject — puts a Debian source package into Subversion repository


svn-inject [options] <package>.dsc <repository URL>


svn-inject accepts the following options on the command-line:


print the help menu


Make the command verbose

Default: Off.


Hide less important messages

Default: Off.


Layout type. 1 (default) means package/{trunk,tags,branches,...} scheme, 2 means the {trunk,tags,branches,...}/package scheme.

Default: 1

-t directory

Specify the directory where the .orig.tar.gz files are stored on the local machine.

Default: Off.

-d | --do-like=directory

Looks at the working directory of some other package and uses its base URL, tarball storage directory and similar checkout target directory.

Default: Off.

-c number

Checkout nothing (0), trunk directory (1) or everything (2) when the work is done.

Default: 1


Only keep modified files under SVN control (including the debian/ directory), track only parts of upstream branch

Default: Off.

-O | --no-branches

Do not create the branches subdirectory at all. This works in a similar way to -o but all changes on upstream files (e.g. meta changes like updating the config.guess and config.sub files) are ignored and the upstream branch is not used.

Default: use branches/.


By default, svn-inject used to create .svn/deb-layout after an inject operation if a checkout followed the inject. Since version 0.6.22 this behaviour is deprecated.

With this parameter svn-inject will replicate the old behaviour.

This option was provided since it can be useful when creating a local override file.

Default: Off.

-setprops -set-props

Set svn-bp:* props on the debian directory automatically.

Default: Off.



The svn-buildpackage HOWTO manual


upgrade source package from a new upstream revision.


Subversion command line client tool


Debian source package tools