简体   繁体   English

如何检查SVN工作副本是否包含已切换的子目录

[英]How to check if an SVN working copy contains a switched subdirectory

I have an SVN working copy, of which I just discovered that in the past I switched a subdirectory (about three directories deep) to a different branch. 我有一个SVN工作副本,我刚刚发现它在过去将一个子目录(大约三个目录)切换到另一个分支。 I switched it back, but now I'm not sure whether there are still other subdirectories that may have been switched. 我将其切换回去,但是现在不确定是否还有其他子目录可能已被切换。

Is there a command that gives an overview of the status of switched subdirectories in a working copy? 是否有一个命令可以概述工作副本中已切换子目录的状态? Possibly also including subdirectories that have been updated to a certain revision only, etc. 可能还包括仅已更新到特定修订版的子目录,等等。

If possible in TortoiseSVN, but at least on the command-line. 如果可能的话,在TortoiseSVN中,但至少在命令行上。

Note: 注意:

have been updated to a certain revision only, etc 仅已更新到某个修订版,等等

doesn't have a much sense. 没有太多意义。 Did you try to detect just "Is my WC clean or not?", regardless of where and how it's dirty? 您是否尝试仅检测“我的WC是否清洁?”,无论它在哪里以及如何弄脏? Because different dirty-reasons require different detection methods (AFAICR) 因为不同的肮脏原因需要不同的检测方法(AFAICR)

Overview of status of WC is (surprise!!!) svn status . WC状态概述为(surprise !!!) svn status For switched dir (not for up to specific rev) it have 对于切换目录(不适用于特定版本)

 ... Fifth column: Whether the item is switched or a file external ' ' normal 'S' the item has a Switched URL relative to the parent 'X' a versioned file created by an eXternals definition ... 

"updated to a certain revision" subtree produces the usual (and normal for SVN) mixed Working Copy and you haven't a reliable method of separation "mixed by need" from "mixed by mistake". “更新到某个修订版本”子树会生成通常的(对于SVN也是正常的) 混合工作副本,并且您还没有可靠的方法将“按需混合”与“错误混合”分开。 "Check for modification" (with "Check repository" button) in TSVN will show you outdated (with revisions in repository newer, than in your WC) objects, but doesn't show nothing about reasons of this state TSVN中的“检查修改”(带有“检查存储库”按钮)将向您显示过时的对象(存储库中的修订版本比WC中的版本更新),但不显示这种状态的原因

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM