如何从 subversion 变更列表中删除文件?

发布于 2024-11-15 21:08:20 字数 458 浏览 4 评论 0原文

我在颠覆变更列表中有一个文件,后来我恢复了该文件。尽管没有任何修改,但它现在仍然列在更改列表中。我如何摆脱这个变更列表?

$ svn status

--- Changelist 'search jsps - don't delete':
        atlassian-jira/secure/views/navigator/navigator.jsp

我已经尝试过

svn changelist --remove --changelist search\ jsps\ -\ don\'t\ delete --depth infinity

svn changelist --remove --changelist "search jsps - don't delete" --depth infinity

I had a file in a subversion changelist that I later reverted. It is now still listed in the changelist even though it has no modification. How do I get rid of this changelist?

$ svn status

--- Changelist 'search jsps - don't delete':
        atlassian-jira/secure/views/navigator/navigator.jsp

I've tried

svn changelist --remove --changelist search\ jsps\ -\ don\'t\ delete --depth infinity

and

svn changelist --remove --changelist "search jsps - don't delete" --depth infinity

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不忘初心 2024-11-22 21:08:20

变更列表与常规的“仅提交新的和标记的内容”政策是分开的。从所有更改列表中显式删除该文件应该可行。

svn changelist --remove atlassian-jira/secure/views/navigator/navigator.jsp

要从所有更改列表中删除所有文件,请传递存储库的顶级目录,如下所示:

svn changelist --remove --depth infinity .

注意最后一个点,它指定当前目录。

Changelists are separate from the regular "commit only new and marked stuff" policy. Explicitely removing the file from all changelists should work.

svn changelist --remove atlassian-jira/secure/views/navigator/navigator.jsp

To remove all files from all changelists, pass the top directory of the repository, like this:

svn changelist --remove --depth infinity .

Note the last dot, which specifies the current directory.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文