Svn Subversion:获取当前目录中受版本控制的文件列表
我想编写一个脚本来获取当前目录中所有版本受控文件的列表(无递归)。有办法做到这一点吗?这是针对Linux的。您可以从以下命令行获取现有子命令的列表:Svn Subversion:获取当前目录中受版本控制的文件列表,svn,Svn,我想编写一个脚本来获取当前目录中所有版本受控文件的列表(无递归)。有办法做到这一点吗?这是针对Linux的。您可以从以下命令行获取现有子命令的列表: C:\Test>svn help usage: svn <subcommand> [options] [args] Subversion command-line client, version 1.8.8. Type 'svn help <subcommand>' for help on a specific sub
C:\Test>svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.8.8.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules
or 'svn --version --quiet' to see just the version number.
Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.
Available subcommands:
add
blame (praise, annotate, ann)
cat
changelist (cl)
[...]
XML输出具有skind
属性:
<entry
kind="file">
<name>Bar.txt</name>
<size>1113</size>
<commit
revision="802">
<author>alvaro</author>
<date>2014-03-10T20:36:52.111059Z</date>
</commit>
</entry>
<entry
kind="dir">
<name>Foo</name>
<commit
revision="795">
<author>alvaro</author>
<date>2014-02-05T20:24:50.508825Z</date>
</commit>
</entry>
Bar.txt
1113
阿尔瓦罗
2014-03-10T20:36:52.111059Z
福
阿尔瓦罗
2014-02-05T20:24:50.508825Z
类似于svn列表?你的具体规格是什么?你遇到了什么问题?我不熟悉这个命令<代码>svn列表| grep-v/几乎完全符合我的要求。
<entry
kind="file">
<name>Bar.txt</name>
<size>1113</size>
<commit
revision="802">
<author>alvaro</author>
<date>2014-03-10T20:36:52.111059Z</date>
</commit>
</entry>
<entry
kind="dir">
<name>Foo</name>
<commit
revision="795">
<author>alvaro</author>
<date>2014-02-05T20:24:50.508825Z</date>
</commit>
</entry>