首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ac2git提供属性错误

Ac2git提供属性错误
EN

Stack Overflow用户
提问于 2016-08-24 21:44:27
回答 1查看 139关注 0票数 1

我正在尝试使用ac2git将我的Accurev仓库转换为Git Repository。我遵循了这里给出的步骤:https://github.com/NavicoOS/ac2git。当我尝试运行python ac2git.py命令时,我得到了这个错误,操作被中止:

代码语言:javascript
复制
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

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-24 22:55:44

正如评论所说,看起来你的stream/depo名称中有一个拼写错误

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39125044

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档