Most of the time depots just sit there and are used by the other SVK commands that you use in general operation, but occasionally depots needs to be operated on directly. This section describes how to do the more general depot administration operations.
For reference documentation on the depotmap command that is used throughout this section, see svk depotmap.
When dealing with depots it's often useful to be able to
find out what depots you have on your system. This is
accomplished using the depotmap command
with the --list option. For example:
$ svk depotmap --list Depot Path ============================================================ // /home/me/.svk/local /my_project/ /home/me/.svk/my_project /my_company/ /var/share/depot
The left column lists the depot path, while the right column lists the actual path to the depot on your filesystem. In this case we see that two of the depots this user has mapped to are located in their home directory, while the other is located in a shared place in the filesystem. The first depot listed is the default depot.
If you reach a point where you no longer want to treat
a depot as a depot (for example if you want to use it as a
repository or you want to delete it completely) you can
tell SVK to forget about it using the
--detach option. For example:
$ svk depotmap --detach /my_project Depot 'my_project' detached.
Use the --list to see that the depot
is no longer known by SVK
$ svk depotmap --list Depot Path ============================================================ // /home/me/.svk/local /my_company/ /var/share/depot
Note that if you do this by mistake you can undo the
operation by mapping the depot again. For example, to
undo the --detach operation above do
this:
$ svk depotmap my_project /var/share/depot New depot map saved. $ svk depotmap --list Depot Path ============================================================ // /home/me/.svk/local /my_project/ /home/me/.svk/my_project /my_company/ /var/share/depot
The --list command shows that the depot
is once again known about by SVK.