When running the SVN update using the system command from the perl script,
使用perl脚本中的system命令运行SVN更新时,
system ("svn update
系统(“svn更新
it doesn't update anything. All I see is the message displaying:
它没有更新任何东西。我只看到显示的消息:
"Skipped "
However when the same command is run from the command-line separately, it update the folder with the SVN.
但是,当单独从命令行运行相同的命令时,它会使用SVN更新文件夹。
3 个解决方案
#1
The subversion client says "Skipped" when you try to update something that is not part of a working copy (i.e. not a folder/file that was checked out). If I had to guess I'd say that the perl script is not properly specifying the directory/files that need to be updated, and "svn" is defaulting to the current working directory which is not a working copy.
当您尝试更新不属于工作副本的某些内容(即不是已签出的文件夹/文件)时,subversion客户端会显示“已跳过”。如果我不得不猜测我会说perl脚本没有正确指定需要更新的目录/文件,并且“svn”默认为当前工作目录,而不是工作副本。
#2
try:
#!/bin/perl
my $cmd = 'cd /directory/to/svn;
svn up';
print `$cmd`,"\n";
1;
#3
It might say "Skipped: svn.example.com" if you don't have the permissions to write that directory.
如果您没有写入该目录的权限,它可能会说“Skipped:svn.example.com”。
Also, check your ~/.subversion directory, its owner, rights, and svn manual for svn configuration options. (In my case, this directory was owned by root for some reason.)
另外,请检查〜/ .subversion目录,其所有者,权限以及svn配置选项的svn手册。 (就我而言,由于某种原因,这个目录由root拥有。)
#1
The subversion client says "Skipped" when you try to update something that is not part of a working copy (i.e. not a folder/file that was checked out). If I had to guess I'd say that the perl script is not properly specifying the directory/files that need to be updated, and "svn" is defaulting to the current working directory which is not a working copy.
当您尝试更新不属于工作副本的某些内容(即不是已签出的文件夹/文件)时,subversion客户端会显示“已跳过”。如果我不得不猜测我会说perl脚本没有正确指定需要更新的目录/文件,并且“svn”默认为当前工作目录,而不是工作副本。
#2
try:
#!/bin/perl
my $cmd = 'cd /directory/to/svn;
svn up';
print `$cmd`,"\n";
1;
#3
It might say "Skipped: svn.example.com" if you don't have the permissions to write that directory.
如果您没有写入该目录的权限,它可能会说“Skipped:svn.example.com”。
Also, check your ~/.subversion directory, its owner, rights, and svn manual for svn configuration options. (In my case, this directory was owned by root for some reason.)
另外,请检查〜/ .subversion目录,其所有者,权限以及svn配置选项的svn手册。 (就我而言,由于某种原因,这个目录由root拥有。)