versioning

Temporarily put away uncommitted changes in Subversion (a la “git-stash”)

徘徊边缘 提交于 2019-11-26 09:14:42
问题 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 changes, i.e. revert to the repository version, do some other changes, commit these, then \"fetch back\" my changes. git-stash allows to do just that. Is there

Best Practice: Software Versioning [closed]

我怕爱的太早我们不能终老 提交于 2019-11-26 08:39:34
问题 Is there any guideline or standard best practice how to version a software you develop in your spare time for fun, but nevertheless will be used by some people? I think it\'s necessary to version such software so that you know about with version one is talking about (e.g. for bug fixing, support, and so on). But where do I start the versioning? 0.0.0? or 0.0? And then how to I increment the numbers? major release.minor change? and shouldn\'t any commit to a version control system be another

Automatically update version number

China☆狼群 提交于 2019-11-26 07:56:25
问题 I would like the version property of my application to be incremented for each build but I\'m not sure on how to enable this functionality in Visual Studio (2005/2008). I have tried to specify the AssemblyVersion as 1.0.* but it doesn\'t get me exactly what I want. I\'m also using a settings file and in earlier attempts when the assembly version changed my settings got reset to the default since the application looked for the settings file in another directory. I would like to be able to

How to perform better document version control on Excel files and SQL schema files

六眼飞鱼酱① 提交于 2019-11-26 07:54:01
问题 I am in charge of several Excel files and SQL schema files. How should I perform better document version control on these files? I need to know the part modified (different part) in these files and keep all the versions for reference. Currently I am appending the time stamp on the file name, but I found it seemed to be inefficient. Is there a way or good practice to do better document version control? By the way, editors send me the files via email. 回答1: Since you've tagged your question with

How do you version your database schema? [closed]

百般思念 提交于 2019-11-26 07:51:15
问题 How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process? I am interested in conventions for versioning database schema along with the source code. Perhaps a pre-commit hook that diffs the schema? Also, what options for diffing deltas exist aside from DbDeploy? EDIT: seeing the answers I would like to clarify that I am familiar with the standard scheme for running a database migration using

What are the best practices for versioning XML schemas?

二次信任 提交于 2019-11-26 07:20:42
问题 I often have to design XML schemas for different XML-bases import routines. It is clear that XML schemas will evolve over time or they could contain bugs to be fixed, so it is important to capture the schema\'s version and to have some mechanism to bind against a specific version. Currently I have two scenarios: The bug is found within the schema and all schema instances must comply with the fixed version. The schema upgraded and should be considered as preferable but an old one should be

Compare version numbers without using split function

蹲街弑〆低调 提交于 2019-11-26 06:32:27
问题 How do I compare version numbers? For instance: x = 1.23.56.1487.5 y = 1.24.55.487.2 回答1: Can you use the Version class? http://msdn.microsoft.com/en-us/library/system.version.aspx It has an IComparable interface. Be aware this won't work with a 5-part version string like you've shown (is that really your version string?). Assuming your inputs are strings, here's a working sample with the normal .NET 4-part version string: static class Program { static void Main() { string v1 = "1.23.56.1487"

How to mark a method as obsolete or deprecated?

烂漫一生 提交于 2019-11-26 06:09:26
问题 How do I mark a method as obsolete or deprecated using C#? 回答1: The shortest way is by adding the ObsoleteAttribute as an attribute to the method. Make sure to include an appropriate explanation: [Obsolete("Method1 is deprecated, please use Method2 instead.")] public void Method1() { … } You can also cause the compilation to fail, treating the usage of the method as an error instead of warning , if the method is called from somewhere in code like this: [Obsolete("Method1 is deprecated, please

Git and the Umlaut problem on Mac OS X

て烟熏妆下的殇ゞ 提交于 2019-11-26 05:59:54
问题 Today I discovered a bug for Git on Mac OS X. For example, I will commit a file with the name überschrift.txt with the German special character Ü at the beginning. From the command git status I get following output. Users-iMac: user$ git status On branch master # Untracked files: # (use \"git add <file>...\" to include in what will be committed) # # \"U\\314\\210berschrift.txt\" nothing added to commit but untracked files present (use \"git add\" to track) It seems that Git 1.7.2 has a

How to allow users to check for the latest app version from inside the app?

馋奶兔 提交于 2019-11-26 04:36:50
问题 I want to add a \"Check for update\" button in apps so that when someone clicks it, it will display a toast message / progress dialog for checking the app\'s version. If new version is found the apps will auto download it to the phone and let user to manually install the updated apps. Or any others method will do as long as it can check for latest version and notify the user to update. 回答1: Google updated play store two months before. This is the solution working right now for me.. class