简体   繁体   中英

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. 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.

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? Because different dirty-reasons require different detection methods (AFAICR)

Overview of status of WC is (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". "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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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