仅从维护目录结构的 subversion 导出更改的文件 [英] Exporting Only changed files from subversion maintaining directory structure

查看:20
本文介绍了仅从维护目录结构的 subversion 导出更改的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我右键单击我的本地工作副本并选择显示日志时.TortoiseSVN 向我展示了为该版本更改的每个文件的完整路径.从 tortoiseSVN 界面我想做的是以下内容.

When I right click my local working copy and select show log. TortoiseSVN shows me the full path of each file changed for that revision. From the tortoiseSVN interface what I would like to do is the following.

当我右键单击修订号并选择导出时.我希望它导出文件,同时将它们保存在目录中.

when I right click the revision number and choose export. I would like it to export the files, while keeping them in their directories.

这可能吗?

换句话说,我只想将我在上次提交中更改的文件导出到硬盘驱动器上的文件夹中(这不是我的工作副本),但我不希望它们都集中在父目录.我希望复制它们,包括它们的相对路径.

To put it another way, I want to export only the files I changed in the last commit, into a folder on my harddrive (that is not my working copy ) but I don't want them to be all lumped in the parent directory. I want them to be copied including their relative path.

推荐答案

我意识到这是一个非常古老的问题,但在这里回答将帮助像我一样在 google 上搜索的人:

I realize this is a very old question, but answering here will help people searching on google like myself:

svn status | grep '^[ADMR]' | cut -b 8- | xargs -I '{}' cp --parents {} /temporary/destination/dir

这篇关于仅从维护目录结构的 subversion 导出更改的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆