如何通过终端从项目中删除.svn hiden文件/文件夹 [英] How to delete .svn hiden files/folders from a project through terminal

查看:64
本文介绍了如何通过终端从项目中删除.svn hiden文件/文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi
我在使用svn存储库时遇到问题。当我尝试在svn中更新我的项目时出现以下错误



oomsys @ oomsysmob-6:〜/ brundelre3 $ svn st

svn:警告:不是工作副本

oomsys @ oomsysmob-6:〜/ brundelre3 $ svn up

Skipped'。'



我尝试过以前从这个链接解释这些错误的东西



从所有目录中删除.svn文件



http://bookmarks.honewatson.com/2008/06/06/find-and-remove-hidden-folders-svn-ubuntu-linux-command-line/



http://www.ubun2.com/question/348/how_remove_all_svn_folders_recursively



但没有解决我的问题。我想删除项目中的所有隐藏文件。



谢谢



Nirmala Sudhir

解决方案

svn st

svn:警告:不是工作副本

oomsys @ oomsysmob-6:〜/ brundelre3


svn up

跳过'。'



我尝试了解释这些错误的事情以前从这个链接



从所有目录中删除.svn文件



http://bookmarks.honewatson .com / 2008/06/06 / find-and-remove-hidden-folders-svn-ubuntu-linux-command-line /



http:// www .ubun2.com / question / 348 / how_remove_all_svn_folders_recursively



但没有解决我的问题。我想删除项目中的所有隐藏文件。



谢谢



Nirmala Sudhir

这是一个非常常见的问题。删除工作目录是一个正确的想法,但同时,你可以检查把项目放在其他目录。



你可能有问题删除.svn因为其中一个Subversion进程拥有一些文件。最有可能的是,这是TSVNCache.exe。使用Windows任务管理器(或任何其他实用程序)杀死此项目,然后您将能够删除文件。



如果它没有帮助,它可能是一些其他过程。



要确定哪个进程包含文件,您可以使用 Sysinternals Suite 中的实用程序。这组实用程序(以前来自 Winternals 公司,目前在Microsoft)是必须的对于任何开发人员,请参阅:

http://technet.microsoft.com/en -us / sysinternals / bb842062 [ ^ ],

http://technet.microsoft.com/en-us/sysinternals / bb545027 [ ^ ]。



您需要的实用程序是 handle.exe ,请参阅:

http://technet.microsoft.com/en-us/sysinternals/bb896655 [ ^ ]。



在您的情况下,您使用文件名参数:

 handle.exe< file_name> 





此实用程序将扫描所有类型的句柄,而不仅仅是文件句柄。对于文件,它将扫描与文件名匹配的所有文件句柄(因此它不必是完整路径名)并返回足以识别每个进程的信息,包括其 pid 。因此,如果您需要有关相关流程的更多信息,您还可以使用其他Sysinternals实用程序,特别是其 Process Explorer

http://technet.microsoft.com/en-us/sysinternals/bb896653 [ ^ ]。



祝你好运,

-SA


Hi I have a problem in using svn repository. When i try to update my project in svn i m getting the following error

oomsys@oomsysmob-6:~/brundelre3$ svn st
svn: warning:is not a working copy
oomsys@oomsysmob-6:~/brundelre3$ svn up
Skipped '.'

I tried the things which explained about these error previously from this links

Removing .svn files from all directories

http://bookmarks.honewatson.com/2008/06/06/find-and-remove-hidden-folders-svn-ubuntu-linux-command-line/

http://www.ubun2.com/question/348/how_remove_all_svn_folders_recursively

but nothing solves my problem. I want to remove all the hidden files from my project.

Thanks

Nirmala Sudhir

解决方案

svn st
svn: warning:is not a working copy
oomsys@oomsysmob-6:~/brundelre3


svn up
Skipped '.'

I tried the things which explained about these error previously from this links

Removing .svn files from all directories

http://bookmarks.honewatson.com/2008/06/06/find-and-remove-hidden-folders-svn-ubuntu-linux-command-line/

http://www.ubun2.com/question/348/how_remove_all_svn_folders_recursively

but nothing solves my problem. I want to remove all the hidden files from my project.

Thanks

Nirmala Sudhir


This is a very usual problem. Deleting the working directory is a right idea, but in a meanwhile, you can check put the project is some other directory.

You may have problem deleting ".svn" because one of Subversion processes holds some of the files. Most likely, this is TSVNCache.exe. Kill this project with Windows Task Manager (or any other utility) and then you will be able to remove the files.

If it does not help, it could be some other process.

To determining which process holds the files, you can use the utility from the Sysinternals Suite. This set of utilities (formerly from Winternals company, presently at Microsoft) is a must-have for any developer, please see:
http://technet.microsoft.com/en-us/sysinternals/bb842062[^],
http://technet.microsoft.com/en-us/sysinternals/bb545027[^].

The utility you need is "handle.exe", please see:
http://technet.microsoft.com/en-us/sysinternals/bb896655[^].

In your case, you use it with file name parameter:

handle.exe <file_name>



This utility will scan all kinds of handles, not just file handles. For file, it will scan all file handles matching the file name (so it does not have to be a full path name) and return information sufficient to identify each process, including its pid. So, if you need more information on a process in question, you can also use other Sysinternals utilities, in particular, its Process Explorer:
http://technet.microsoft.com/en-us/sysinternals/bb896653[^].

Good luck,

—SA


这篇关于如何通过终端从项目中删除.svn hiden文件/文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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