full clearcase history for gource

雨燕双飞 提交于 2019-12-06 10:50:16
VonC

The issues are:

    e = d['Element']
    splitElement = e.split("@@")
    d['FileName'] = splitElement[0]
    d['StreamName'] = splitElement[1]
    # StreamName starts with /main/ which we aren't interested in.
    # Remove the /main/ (slice on 5 because there are 5 chars in /main/)
    d['StreamName'] = d['StreamName'][5:]
  • the cleartool lshistory --all will list history of deleted elements (non-visible anymore in the current ClearCase view), hence the multiple branch names.

The easiest solution would be to:

  • redirect the cleartool lshistory output to a file, and
  • then filter out all the extended paths which don't conform to clearcase2gource.py expectation: for instance, just for testing, keep only the ones in a specific branch or in /main only, just to see if that works better.
  • finally feed that file as input to clearcase2gource.py
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!