2010-12-15 31 views

回答

1

當你訪問一個UNIX shell(或uniq的,排序和SED工具),你可以做到以下幾點:

# getting the changed file list in trunk 
svn diff --summarize /path/to/repos/[email protected] /path/to/repos/trunk | sed -e 's/......//' > changes-trunk 
# the sed part removes the status columns, which might cause uniq to fail identifying equal files 

# getting the changed file list of the branch 
svn diff --summarize /path/to/repos/[email protected] /path/to/repos/branch/foobar| sed -e 's/......//' > changes-branch 
# display the files which changed on both branches 
sort changes-trunk changes-branch | uniq -d > possible-conflicts 

# getting the base file list 
svn ls -R /path/to/repos/[email protected] > files-base 
# getting the list of files not changed in trunk 
sed -e "s# /path/to/repos/[email protected]/##" changes-trunk | sort - files-base | uniq -u > untouched 
相關問題