2012-07-16 3 views

답변

1

좋아하는 svn 클라이언트로 CSV 파일을 만들고 Excel에서 엽니 다. Excel에서는 CSV를 읽으므로 내부 Excel 형식을 실제로 알 필요가 없습니다.

+0

같은 출력이/나에게 나에게 수정 된 모든 파일의 목록을 제공하는 명령 줄 개 pls 수거야은 CSV의 옵션 최종 개정에 첫번째의 사이에 추가 . 감사. –

+0

CSV에 대한 옵션이 없으므로 구문 분석과 함께 약간의 학습이 필요합니다. 기본적으로 svn diff를 다음과 같이 사용할 수 있습니다 : svn diff -r REVNO : HEAD --summarize –

0

svn diff를 실행하여 xml 파일로 출력 할 수 있습니다. 그런 다음이 기본 xsl 파일을 실행하십시오.

그런 다음 위의 XML이 XSL을 적용됩니다 .BAT 파일

set __SVNClient="C:\Program Files\CollabNet\Subversion Client\svn.exe" 
set __svnBaseSVNSourceLocation=https://mySVNServer.com/MyRepository 

%__SVNClient% diff --revision 333:HEAD "%__svnBaseSVNSourceLocation%" --summarize --username %USERNAME% --xml >>svndiffexample.xml 

set __svnBaseSVNSourceLocation= 
set __SVNClient= 

이 넣습니다.

<?xml version="1.0" encoding="utf-8"?> 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> 
    <xsl:output method="text" indent="yes"/> 
    <xsl:template match="/">item,props,kind,path<xsl:text>&#10;</xsl:text> 
     <xsl:for-each select="//diff/paths/path"> 
<xsl:value-of select="@item"/>,<xsl:value-of select="@props"/>,<xsl:value-of select="@kind"/>,<xsl:value-of select="."/> 
      <xsl:text>&#10;</xsl:text> 
     </xsl:for-each> 
    </xsl:template> 
</xsl:stylesheet> 

하고이

item,props,kind,path 
modified,none,file,https://mySVNServer.com/MyRepository/MyFile01.txt 
modified,none,file,https://mySVNServer.com/MyRepository/ABCFolder/INC/MyFile01.inc 
modified,none,file,https://mySVNServer.com/MyRepository/ABCFolder/Js/MyFile01.js 
modified,none,file,https://mySVNServer.com/MyRepository/DEFFolder/MyFile01.pdf 
관련 문제