开发者

get added file in directory TortoiseSVN

Simple question.

I need to get a file that has been added to a directory by another开发者_C百科 developer, but do not want to update any of the other files in the directory. How can I only update that 1 file when I don't have it currently? commit + update is not an option.


Right-click on your working copy folder, choose "Check for modifications". In that dialog, click on the button "check repository".

Now the added file is shown in the file list of the CfM dialog. Right-click on that file, choose "Update" from the context menu.


Just find the file in the repo browser, right-click, and choose "Copy to working copy".


To just get the single file, you can: Right-click the containing folder, go to TortoiseSVN>RepoBrowser, find the file, right-click and Save As.

If you really needed a versioned copy of the file, you could always back up any changes, update the whole folder, then use Update to Revision on all files other than that one new file to roll them back to the desired revision... Not entirely sure what you need to achieve.


Wouldn't just a svn up filename work? ( assuming you have a cli client)

As per the other answer, Copy to Working Copy may not be what you want to do. It creates a new file and svn adds it to the working copy. Your wroking copy has no idea that someone has commited such a file ( until you commit that is )

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜