Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have svn return *something* from Branches() and Tags() #20

Open
sdboyer opened this issue Mar 31, 2016 · 4 comments
Open

Have svn return *something* from Branches() and Tags() #20

sdboyer opened this issue Mar 31, 2016 · 4 comments

Comments

@sdboyer
Copy link
Member

sdboyer commented Mar 31, 2016

Even though branches and tags in svn are just convention, it seems like it'd still be useful to enumerate those tags/branches that follow the basic convention.

As it stands, not having data reported back from there makes it nigh-impossible (in [vsolver][https://github.com/sdboyer/vsolver]-land, anyway) to have dependencies on such repos at all.

...ofc, we could also basically just ignore svn... :)

@mattfarina
Copy link
Member

@sdboyer This is something I've struggled with. I initially tried writing this package to optionally work with versions and branches for SVN. Since it's a convention and I've not had much call for it I opted out of the extra complexity. Pull requests are welcome.

@sdboyer
Copy link
Member Author

sdboyer commented Apr 5, 2016

as i've other things that are more pressing in the area right now, i'm content to ignore it atm. deciding on something appropriate to svn's mechanics will take a level of thought that i just...yeah, need for other things

@markzhang0928
Copy link

Calling svn without an appropriate golang sdk is really frustrated.

@simcrack
Copy link

simcrack commented Nov 28, 2022

In svn, tags and branches are folders like the trunk, which is the equivalent of master in Git. These folders do not always have the same location and name [1]. For example, the branch of a particular repository may be in a different location than the trunk folder.

From my point of view there are two solutions:

  1. (Maybe) better usability: make the tag/branch configurable (additional parameters in the NewSvnRepo() function).
  2. Easier to write: add the function SvnRepo.List() or Repo.List() which lists all files and folders in a remote path / svn repository (or DirList).

I can create a pull request, but before that I would like to hear your opinion.

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

No branches or pull requests

4 participants