Branch moved folder based on label or date

左心房为你撑大大i 提交于 2019-12-11 11:59:42

问题


I've moved a folder in tfs using the "move" command but now I cannot create branches off the moved folder based on date or label (label was created when source was in the old folder). I can however create a branch based on "latest version". I get an error message "no items match in if I try to branch of a label. I'm guessing the label references files using the old folder before I moved it. I also get no files if I try to "get specific version" by either date or label.

I've tried to roll back moving the folder but this gives me errors such as "An unexpected error occured".


回答1:


If you need to branch from points in time prior to the move, you need to specify the old name.

# fails
tf branch $/project/folder-newname $/project/folder-somebranch /version:Loldlabel

# should work
tf branch $/project/folder-oldname $/project/folder-somebranch /version:Loldlabel



回答2:


The error related to rollback was that I had to roll back a folder rename first. I could then roll back moving the folder.



来源:https://stackoverflow.com/questions/759402/branch-moved-folder-based-on-label-or-date

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!