versioning

What is the proper way to handle assembly version?

I am looking forward to implement daily build for a upcoming project. But before doing that, I need to know how to properly version an assembly. I have the following concern: Should each assembly have an independant version or should they all share the same version? Should I use a * version for build and revision? Is revision relevan...

Build numbers: major.minor.revision

How would you write a build.xml file, using neither custom code nor external dependencies (such as a shell script), that: Generates a build number of the form major.minor.revision (e.g., 01.02.34). Auto-increments the revision on each compile of the source code. Auto-increments the minor version on each execution of a dist(ribution) ta...

Bamboo Versioning

Hello guyz, I have a situation where i need to maintain version information of my builds. By googling i found limited information. one way is to create a version file on source control and keep updating. other is to use the source control revision number. final one is to use bamboo build number. i haven't implemented anyone of this befo...

NHibernate filter collection

Using NHibernate I want to filter a collection in a class to contain ONLY a subset of possible objects. Below I am including a sample table data to help explain. I can find no way to do this using NHibernate. Table:DataObject DataObjectId(PK) / Name / CurrentVersion 11 "data.txt" 2 12 "info.txt" 3 Table...

jQuery file name

This one should be easy, and I think I know the right answer, but here goes. For compatibility reasons, should I leave the filename of jQuery as "jquery-1.3.2.min.js" or just rename it to jquery.js? My guess is leave it as is to avoid conflicts in case another app uses a different version of jQuery. If they've renamed it to "jquery.js...

How can I automatically update Perl modules' $VERSION with Git?

Let's say, a team of programmers is doing a web application in Perl and uses git to host their code. Now they have a small problem with versioning their modules: Perl::Critic and PBP both recommend a RCS-backed $VERSION variable in code git explicitly recommends against using replaceable revision numbers in code (with good reasoning) ...

A definite guide to API-breaking changes in .NET

I would like to gather as much information as possible regarding API versioning in .NET/CLR, and specifically how API changes do or do not break client applications. First, let's define some terms: API change - a change in the publicly visible definition of a type, including any of its public members. This includes changing type and mem...

MSXML: How do ask an IXMLDOMNode what version MSXML it comes from?

How can i ask what version of MSXML an IXMLDOMDocument2 is? Given an IXMLDOMDocument2 i need to create another document of the same version. If you give an IXMLDOMDocument from different versions of MSXML, you will get an exception from msxml: It is an error to mix objects from different versions of MSXML. Microsoft internally can...

Experiences with phpMyVersion

Hi! I've been looking for an easy and automated way to detect changes on my database structure so I can check them into subversion and be able to roll back to older versions etc. Now I found phpMyVersion, which seems to do exactly that job. I didn't have time to look into it in great detail, but does anyone of you have some experiences...

Any good Mac|Linux software that will assist in writing version log files?

Pretty much the question I wrote in the title. Im just getting tired of filling in the version log text files manually all the time. ...

Getting FILEVERSION from Visual C++ Resource File

Are there some preprocessor keywords to use to access the FILEVERSION defined in my .rc file at compile time? I don't really want to add extra code to read the file information from the compiled product itself. ...

Build events and versioning .js and .css files.

I have a MSBuild script set up to minify and combine my javascript and css files. What I need now is a way to version them. How are you guys currently handling this. What is the best way to incrementally version the file and update the <script/> tag with the new file name? ...

Database design: Keeping track of tag changes between revisions

I'm building a revision system similar to the one Stack Overflow has and there's one thing I can't get my head around, what's the best way to the differences in tags between multiple revisions? The simplest way I can think of is we have 3 tables, revisions, tags and another to link the two. Each revision then has its own set of tags, t...

Versioning for a maven project with small, very frequent releases

I'm converting an ant project to a maven one. This project differs from the ones I've usually converted since it has very frequent releases, typically 8-10 times per day. By release I mean that the resulting jar is packaged and included in the production enviroment. This project is a leaf one, so it publishes no API, it only consumes it...

Supporting Multiple Python Versions In Your Code?

Today I tried using pyPdf 1.12 in a script I was writing that targets Python 2.6. When running my script, and even importing pyPdf, I get complaints about deprecated functionality (md5->hashsum, sets). I'd like to contribute a patch to make this work cleanly in 2.6, but I imagine the author does not want to break compatibility for older ...

Version number of a dll in .NET

Given the following: string file = @"c:\somepath\somefile.dll"; How can I find the file and product version numbers of that DLL using .NET? The dll can be either native or managed. Thanks. ...

Revision system - Help improve my code

A section of a site I am building needs some form of revision system and so decided to keep it simple and go with one similar to Stack Overflow. I quickly created the following which works although seems a little messy. I know I can use beforeSave and afterSave but I have no idea how I could implement it. I know I could probably move ...

SharePoint document library versioning and require check out settings using web services

Hello. I need the information about the SharePoint document library. Namely, I need the info whether the versioning is turned on or off and if the "require check out" option is selected. I have to use SharePoint web services. I have looked up in Versions.asmx, Lists.asmx and SiteData.asmx, but found no method or properties that suit my...

Temporarily put away uncommited changes in Subversion (a la "git-stash")

While programming software stored in a Subversion repo, I often modify some files, then notice that I'd like to do some preparatory change for my main work. E.g. while implementing new functionality, I notice some refactoring which might help me. In order not to mix two unrelated changes, in these cases I'd like to "stow away" my change...

Rsync create new file on file size change

Hi All, I need to backup (for debugging) some temporary files meanwhile a program running. I used to do it with rsync-ing the /var/tmp/someprogram directory with find . -iname 'blahblah' -exec rsync -someoptions $DESTdir, which works wonderful. Except the case of someone in some program (for which I don't have source code access, and n...