Git::SVN::Utils - utility functions used across Git::SVN
use Git::SVN::Utils qw(functions to import);
This module contains functions which are useful across many different parts of
Git::SVN. Mostly it's a place to put utility functions rather than duplicate
the code or have classes grabbing at other classes.
All functions can be imported only on request.
Display a message and exit with a fatal error code.
my $can_compress = can_compress;
Returns true if Compress::Zlib is available, false otherwise.
my $canoncalized_path = canonicalize_path($path);
Converts $path into a canonical form which is safe to pass to the SVN API as a
my $canonicalized_url = canonicalize_url($url);
Converts $url into a canonical form which is safe to pass to the SVN API as a
my $new_path = join_paths(@paths);
Appends @paths together into a single path. Any empty paths are ignored.
my $new_url = add_path_to_url($url, $path);
Appends $path onto the $url. If $path is empty, $url is returned