Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

subversion 1.7 and above uses .svn/wc.db instead of .svn/entries #47

Open
maverickwoo opened this issue Sep 24, 2013 · 5 comments
Open

Comments

@maverickwoo
Copy link

diff --git a/bin/vcprompt b/bin/vcprompt
index 9e1dbb6..48e45ef 100755
--- a/bin/vcprompt
+++ b/bin/vcprompt
@@ -572,7 +572,7 @@ def hg(options):
     }


-@vcs([".svn/entries"])
+@vcs([".svn/entries", ".svn/wc.db"])
 def svn(options):
     """
     Subversion
@mauritsvanrees
Copy link

+1

Apparently I failed to notice for a long time that it was not working for subversion, even though I am already on svn 1.8.9.

@maverickwoo
Copy link
Author

I have a minimally-maintained fork---minimal as in the sense that I am not developing major new features but I do try to incorporate all known fixes.

https://github.com/maverickwoo/vcprompt

@mauritsvanrees
Copy link

Thanks, @maverickwoo, I'll follow that one.

@zbeekman
Copy link

zbeekman commented Oct 7, 2014

@maverickwoo: You don’t have issues enabled on your fork, or I would post this there—It looks like there is some logic to determine if the current subversion directory is below a branches or tags directory and then extract a branch name from that. For me, subversion always reports unknown for the branch.

@maverickwoo
Copy link
Author

@zbeekman I have just enabled issue on my fork. You can open an issue there now.

The logic to get the branch for svn is to execute svn info --xml and parse the output. So when you open the issue, can you please include the output of that command on your working directory? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants