svn

How do I optimize SVN (SVNKit) for commiting big files?

Hi, I'm writing a wrapper for SVNKit to be used as a sync tool. And committing a 51mb file is taking a long time and I was wondering if performance of committing/importing can be optimized? What do you guys think? ...

svn diff summarize

Hi, I want to get collated changed files across certain revision sets. Something like this : svn diff --summarize -r2949:3594,3925:4007,4015:4153 repo-url Any hacks on this svn command to achieve this ? regds, ...

Make a SVN working directory contain EXACTLY the same as a clean checkout

For doing builds, packaging files up, etc, it's needed to have a completely clean version from SVN. There can't be any non-versioned files which are floating around, e.g test.png might get packaged up if all PNG files are grabbed. But, getting a totally new checkout is time and bandwidth consuming. So is there a way to take a working di...

SVN post commit stucks while starting process

Hi, I've built a script in VS that receives the 2 arguments sent by post-commit hook. The script runs SVN LOG to retrieve data about the revision (author, date, files). When I run the solution from VS with constant vars for the arguments, it runs perfectly. When I execute the exe file, also runs perfectly. When I implement the hook ...

How to pull specific directory with git

hello, I have a project with git, and I just want to clone or pull a specific directory, like myproject/javascript just like subversion does. make some changes, commit and push back again. It's possible? ...

Maven : Determine parent POM

Hi there, I have a whole bunch of mavenised projects, and I want to check that each project has the correct version of a parent pom. One way could be to checkout each project in turn, and then have a script that reads the parent section. Or is these some way of determining this from looking at the repository? Has anyone else had to ...

Why isn't obliterate an essential feature of Subversion?

For some years now, I'm waiting for Subversion to feature a "delete permanently" (obliterate) function. I hesitate to make the transition to Subversion (coming from Visual SourceSafe :p), because I think this is an essential feature, as otherwise I'd expect the repository to grow unstopably. However, for one reason or the other, the feat...

When you move files around in Visual Studio will Ankh SVN turn that into a SVN move?

I would like to move some files around in Visual Studio. But I see Ankh is treating that as new files and delete in the changes list. Is the equivalent to SVN move? I don't want to loose the history for those files. ...

Cornerstone vs Versions for Mac OS X

I've been using svn on the command line for 5+ years, but I'm thinking of switching to GUI. The two kings of Mac subversion apps seem to be Versions and Cornerstone. Most of the reviews/comments I've seen comparing the two are from way back in 2008, when Cornerstone was first released. It's now 2010, and both apps have undergone signifi...

ASP.NET MVC WAP, SharePoint Designer and SVN

All, I'm starting a new ASP.NET MVC project which requires some content management capabilities. The people who will be managing the content prefer to use SharePoint Designer (successor to FrontPage) to modify content. I'd like to allow them to keep doing that. The issues are: Since I'd like this to be a WAP, not a website project...

svn: Restrict trunk commits to authorized users

We are planning on having a policy to prevent commits to trunk. All commits must happen against branches. What should be my approach to get this done? ...

How to check for an existing executable before running it in a post-build event in VS2008?

Hey all, I'm trying to use SubWCRev to get the current revision number of our SVN repository and put it in a file so I can show it in the UI. As I'm working with a Web App, I use the following post build command line: "SubWCRev.exe" "$(SolutionDir)." "$(ProjectDir)Content\js\revnumber.js.tpl" "$(ProjectDir)Content\js\revnumber.js" I...

how to handle solutions/versioning in subversion

We are using ankhsvn to check in our .net code, however I have two issues with our setup that I want to resolve. 1\ I thought a key reason to have a tool like svn is that you can rollback to an earlier version of your codebase. If developers are just checking in code, then how can you get version 1.1 (say the current production build), ...

SVN Import Force for importing existing file

I am creating a text file and a zip file for a tag automatically with MSBuild. My msbuild project is called by cruisecontrol.net. The text file is always going to be latest.txt and the zip file will be (version).zip (so it will be different every time). I do not want to commit these files back to my trunk nor check out the tags director...

Subversion version 'difference' a big deal?

Greetings, using VS2008 and VisualSVN and seems the VisualSVN folks are religious about updating the client (and their VisualSVN server) to the latest Subversion release. My question is my subversion server is a hosted server and seems to always lag several versions behind the client I use. Should I be concerned about this version "mis...

SVN: Recurisvely add files?

I'm trying svn add *.py --force As the documentation suggests, but I know for a fact it's missing files nested in deeper folders. Why? Is there a standard way to do this with other unix commands too? */*.py will nab a few more files, but it's kind of a pain in the butt to do this for every possible depth. ...

How to get the earliest checkout-able revision info from subversion?

I want to check a svn url and to get the earliest revision, then checkout it, I don't want to use HEAD because I will compare the earliest revision to others. so I use "svn info" to get the "Last Changed Rev" for the url like this: D:\Project>svn info svn://.../branches/.../path Path: ... URL: svn://.../branches/.../path Repository Roo...

SVN branches: Delete branch locally, but do not show up as modified

I accidently went and synced up my branches folder resulting in a download of all the branches on my local harddisk (very huge in size) Now how can I delete the branches locally but not show up in the svn as modified/missing? I use tortisesvn Edit: Doing a system delete on the individual branches will show up missing. I don’t wa...

Import files directly to SVN repo without checking out first

Hi, I am using SVN and have a repository on a remote machine. Sometimes, when working on my local machine I realize that I need to add some new files to the repo. The usual procedure I know would then be: 1- at the current folder on my local machine checkout the whole SVN repo 2- enter there 3- copy the interesting file here 4- commit ...

How to handle splitting a file under source control?

I have a .cpp file and .h file containing a class. Class.cpp contains the implementation and Class.h contains the definition. The class is overcomplicated so I want to separate some code and move it into a separate class. So I create NewClass.cpp and NewClass.h and move the code there. How do I handle this when the files are under SVN? ...