Module: Subversion::SvnCommand::Move

Defined in:
lib/svn-command/svn_command.rb

Overview


Instance Method Summary collapse

Instance Method Details

#__parentsObject Also known as: _p

If the directory specified by the destination path does not exist, it will ‘svn mkdir –parents` the directory for you to save you the trouble (and to save you from getting an error message!).

For example, if you try to move file_name to dir1/dir2/new_file_name and dir1/dir2 is not under version control, then it will effectively do these commands:

svn mkdir --parents dir1/dir2
svn mv a dir1/dir2/new_file_name   # The command you were originally trying to do


645
# File 'lib/svn-command/svn_command.rb', line 645

def __parents; @create_parents = true; end