Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Subversion support #1

Open
aslakhellesoy opened this issue Oct 8, 2013 · 1 comment
Open

Subversion support #1

aslakhellesoy opened this issue Oct 8, 2013 · 1 comment

Comments

@aslakhellesoy
Copy link
Contributor

We need Subversion support similar to Svn.java

We might be able to patch the svn gem to implement codefoundry/svn#3 (svn info and svn ls --recursive).

If that turns out to be hard we can just shell out to the svn client, but that might be a little tricky since it might not be on the PATH on the CI machine, and we also have to parse the output from the svn command line.

@aslakhellesoy
Copy link
Contributor Author

I think we can simplify this so we don't need the svn gem - only use the command line.

To get all the files in the repo, just do a Dir['**/*'] and then subtract all files that are not in the repo. Files not in the repo can be found with svn status - it reports these files/directories as ? some/path. We'll just grab all the ? files and remove the ones from Dir['**/*'] that start with one of the ? files.

I might do the same in the java implementation since this is much quicker than the current implementation which talks to the server.

Getting the repo revision is just svn info and look for /^Revision: (\d+)/m.

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

No branches or pull requests

1 participant