2016-08-24 11 views
1

私はAccurev DepotをGitリポジトリに変換するためにac2gitを使用しようとしています。私はここに与えられたステップに従った:https://github.com/NavicoOS/ac2git。私は、Pythonのac2git.pyコマンドを実行しようとすると、このエラーを取得していますし、操作は中止されます。Ac2gitが属性エラーを与える

2016-08-24 09:07:31,312 - ac2git - ERROR - The script has encountered an exception, aborting! 
Traceback (most recent call last): 
File "ac2git.py", line 3596, in AccuRev2GitMain 
rv = state.Start(isRestart=args.restart, isSoftRestart=args.softRestart) 
File "ac2git.py", line 2974, in Start 
self.RetrieveStreams() 
File "ac2git.py", line 1537, in RetrieveStreams 
endTr = endTrHist.transactions[0] 
AttributeError: 'NoneType' object has no attribute 'transactions' 

私は「今」のように1とend_tranほどのHIST-深くstart_tran方法を使用していました。 私はaccurevの履歴を見て、#1でトランザクションがあるので、エラーが参照している "NoneType"になる可能性がありますか?

ac2git.config.xml

<accurev 
    username="********" 
    password="********" 
    depot="Product" 
    start-transaction="1" 
    end-transaction="now" 
    command-cache-filename="command_cache.sqlite3" > 
    <!-- The stream-list is optional. If not given all streams are processed --> 
    <!-- The branch-name attribute is also optional for each stream element. If provided it specifies the git branch name to which the stream will be mapped. --> 
    <stream-list> 
       <stream>Stage1</stream> 
    </stream-list> 
</accurev> 

    <git 
    repo-path="C:\Users\ssrivastava\repository" 
    message-style="notes" 
    message-key="footer" 
    author-is-committer="true" 
    empty-child-stream-action="merge" 
    source-stream-fast-forward="false" > 
    <!-- Optional: You can add remote elements to specify the remotes to which the converted branches will be pushed. The push-url attribute is optional. --> 
    <remote name="origin" url="https://github.com/orao/ac2git.git" push-url="https://github.com/orao/ac2git.git" /> 
    <remote name="backup" url="https://github.com/orao/ac2git.git" /> 
</git> 
<method>deep-hist</method> 
<merge-strategy>normal</merge-strategy> 
<logfile>accurev2git.log</logfile> 

<usermaps filename="usermaps.config.xml"> 
<map-user><accurev username="******"/><git name="Shruti Srivastava" email="******" timezone="+0500"/></map-user> 
</usermaps> 
</accurev2git> 
+0

のPythonのバージョンを使用しているを持っていたように見えます、コメント? (良いVCSに移行するための小道具) – Av4t4r

+0

私はバージョン3.4.3を使用していました。 –

+0

私はここにconfigファイルとutiltiyに渡された引数を投稿するべきだと思います – Av4t4r

答えて

2

として、あなたのストリーム/デポ名のタイプミス

関連する問題