revision

Getting the subversion repository number into code...

I'd like to implement a way of recording the version of a project within code, so that it can be used when testing and to help track bugs. It seems the best version number to use would just be the current revision number from Subversion. Is there an easy way to hook this number into a (C++ in my case) header file or something, which I c...

Do you use distributed version control?

I'd like to hear from people who are using distributed version control (aka distributed revision control, decentralized version control) and how they are finding it. What are you using, Mercurial, Darcs, Git, Bazaar? Are you still using it? If you've used client/server rcs in the past, are you finding it better, worse or just different? ...

How do I simultaneously work on version 1.1 and version 2.0?

The situation: We're out of beta and version 1.0 has been released to several customer sites. Team A is already busy working on version 1.1 that will have incremental bugfixes and usability tweaks, while another team works on version 2.0 with large-scale changes, where the core of the product may have been completely redesigned. Now, mos...

What's the difference between Subclipse Get Contents and Get Revision?

When using the Eclipse->Team->Show History view, what's the difference between using Subclipse "Get Contents" and "Get Revision" options on a revision of a file? Is there any way to see what svn commands Subclipse is issuing behind the scenes? ...

How to display latest revision in a file?

Hey, I'm wondering how do you deal with displaying release revision number when pushing live new versions of your app? You can use $Rev$ in a file to get latest revision, but only after you update the file. What if I want to update a string in one file every time I change any file in the repository/directory? Is there a way? ...

How can I get the svn revision number in PHP?

I want to have my PHP Application labeled with the revision number which it uses, but don't want to use CruiseControl or update a file and upload it everytime. How should I do it? ...

Easy way to embed svn revision number in page in PHP?

Notice in the bottom right hand corner of this page it has the SVN revision id? I'm assuming that's dynamic. I'd love to add that to some of my sites, just as a comment in the source to make sure code pushes are going through. NOTE: You can also assume that the working directory of the site in question is an svn checkout of the repo in...

obtain current svn revision in webapp

what is the best way of displaying/using the revision number in a java webapp? we just use ant to build our .war archive, no buildserver or such. i'd hope there was some kind if $ref that i could write in a resource file, but this is only updated when the file in question is committed. i need it globally. what would you recommend? post...

Subversion and revision engineering - what are the best web resources to read about?

We are migrationg from CVS to SVN and embracing some kind of revision management in order to enforce order to development/testing/release cycle. We are currently testing, developing and releasing on the same code line, we know its a bad practice and we want to make end to it. What are your experience, know how, suggestions working with ...

What is a good framework for Database Migrations the is compatibile with SQL Server?

I've been spoiled by ActiveRecords. So I'm on the lookout for migration system that can be applied to SQL Server, and either is executed as Java application, or a Win32 Executable. (Of course further compatibility with other DB's and host OS's is welcome.) The real desire is having a clear schema change application with roll back, ide...

How can only the files that were modified in a range of SVN revisions be checked out?

Is it possible to checkout only those files from a SVN repository that were modified in a revision or range of revisions, without checking out any files that were not modified? ...

Subversion's hidden revision files

You know how Subversion stores a copy of every file it has checked-out in the hidden .svn folders? The website I'm building is pretty big (has over 1Gig of PDF files). These PDF files will very rarely change throughout the existence of the website. I was wondering if there was a way of telling Subversion that it shouldn't store a local ...

Using Git For Community-Oriented Website Content Revision System

I'm working on a Django-based web app in which the community fuels the content on the site, much like a wiki. Content is in the form of HTML, and users have total freedom to fork articles/chapters or make their own modifications to existing ones and add them to the current 'working version'. The maintainer of each article/chapter (the or...

Get revision number of a remote repository

Hi! On the local machine it is no problem to get the revision number of a subversion repository with svnversion. Now I want to get the revision number from my online repository (WebDAV with Apache2). I tried this: svnversion http://nick:[email protected]/svn/test` In a browser it worked as usual (just to ensure there weren't t...

What is the best way to create a simple revision system using MySQL?

I am currently working on a simple revision system that enables me to store multiple versions of a single file, which works fine so far. Table structure is as follows (obsolete columns removed for the sake of brevity): file_id file_revision file_parent file_name -------------------------------------------------------- 1 ...

SVN Export with revision history problem

I need to provide our clients with a dump of a single sub directory in our SVN repository along with the revision history if possible. I know that you can do a dump but I don't believe you can tell it to isolate a single sub directory in the repo. If I export i'll only get the head or a single revision, this is not what I need. Is there ...

How to display SVN revision on web site dynamically?

My web site is a checkouted version of SVN repo. I mean .svn folders are placed on web server. I don't use web publishing. And I want to display current project revision (whole web site) in footer. How can I do that? If I were using web publishing, I could determine revision on build/publish and write it as static html. So how to get ...

How to get the git commit count?

I'd like to get the number of commits of my git repository, a bit like SVN revision numbers. The goal is to use it as a unique, incrementing build number. I currently do like that, on Unix/Cygwin/msysGit: git log --pretty=format:'' | wc -l But I feel it's a bit of a hack. Is there a better way to do that? It would be cool if I actua...

Monotone - only pull the latest revision of a repository

I have a remote monotone repos I want to pull from, but I really only need the latest revision (Nope, don't need the history. Yes I'm sure. And I really don't want to wait the hour-and-a-half required to get the full history). Is there a quick and easy way I can do that? ...

relational databases and versioning: revision intervals

I've been thinking about how to apply data versioning to a relatively simple database I have, and figured I should do something like is mentioned in Jim T's post where there are global revision #s (e.g. like in Subversion or Mercurial) and each database record has a validity interval. Example: Create a person. |Name|D.O.B |Tel...