gpt4 book ai didi

python - Ac2git 给出属性错误

转载 作者:行者123 更新时间:2023-12-01 03:44:40 24 4
gpt4 key购买 nike

我正在尝试使用 ac2git 将我的 Accurev Depot 转换为 Git 存储库。我按照此处给出的步骤操作:https://github.com/NavicoOS/ac2git 。我在尝试运行 python ac2git.py 命令时收到此错误,并且操作被中止:

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'

我使用的方法为 deep-hist,start_tran 为 1,end_tran 为“now”。我查看了 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>

最佳答案

正如评论所述,您的流/depo 名称似乎有拼写错误

关于python - Ac2git 给出属性错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39125044/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com