开发者

How do I tell if an svn workspace has been 'switched'?

If I have a workspace that was initially checked out from a reposi开发者_如何学编程tory ~/trunk, then at the end of the last week I may or may not have run: svn switch ~/branches/somethingcool . , but a weekend has passed and I can't remember if I switched myself back, what can I do to check that?


svn info will tell you which repository your working copy is linked too.


Since you have mentioned just SVN, I will point you to my answer regarding the same thing - it is a powershell one liner that will look at your working copy and spew out the repo URL for eac directory. You can get the idea a bash script if you are on *nix:

gci | ?{ $_.psIsContainer -eq $true -and ((svn status $_.fullname) -notmatch "\?")} | %{svn info $_.fullname} | select-string -Pattern "PATH:|URL:"

How can I tell that all directories in a SVN working copy point at the same repository root?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜