0
我有一個SVN存儲庫的子文件夾簽出。我想腳本svn diff -r$OLDESTREVISION > diff && vim diff && rm diff
,所以我可以將它別名爲difforig
。如何檢出SVN中最舊的子文件夾版本?
OLDESTREVISION
對於我想要運行它的每個子文件夾都會有所不同,所以我不能對其進行硬編碼。我可以svn log
和解析輸出的最古老的列,但這將需要輸入密碼和更多的時間比我想要的。
svn help diff
返回
-r [--revision] ARG : ARG (some commands also take ARG1:ARG2 range)
A revision argument can be one of:
NUMBER revision number
'{' DATE '}' revision at start of the date
'HEAD' latest in repository
'BASE' base rev of item's working copy
'COMMITTED' last commit at or before BASE
'PREV' revision just before COMMITTED
但預期svn diff -rBASE
不起作用。