versioning

How to derive application build version string with Git's `describe` command?

梦想与她 提交于 2019-12-17 10:32:12
问题 I want to compose application build version that is automatically derived from the Git branch name I am on (when building) and the number of commits since the branch has diverged. I believe this will be unique for any commit in my Git repository? Branch names are unique, and commits are linked to each other along a branch? If and when I tag a commit, I can also have the version be prefixed with that tag. In a way git describe does what I want, but it does not include the branch name I am on,

How do I set the version information for an existing .exe, .dll?

流过昼夜 提交于 2019-12-17 02:26:39
问题 As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not. I want to be able to apply the following information: Company Name Copyright Notice Product Name Product Description File Version Product Version All of these attributes are specified by the build script and must be applied after compilation. These are standard binaries (not assemblies) compiled with

Semantic versioning: minor or major change? (second part)

本小妞迷上赌 提交于 2019-12-14 03:58:40
问题 Some time ago I had asked whether adding fields to a struct of a shared library would require a major or a minor change in the version string according to semantic versioning. The few participants where inclined to suggest a major change. Months have passed and I have not added any fields to my struct yet. But now it might be the right time for doing it. However in the meanwhile I have also been thinking about how this could break binary compatibility with programs compiled with previous

How can I get the build number of a Visual Studio project to increment?

大憨熊 提交于 2019-12-14 01:09:35
问题 Why does building a project in Visual Studio not increment the Build number? I've got this in AssemblyInfo.cs: [assembly: AssemblyVersion("1.5.*")] ...and this in frmAbout's constructor: Version versionInfo = Assembly.GetExecutingAssembly().GetName().Version; String versionStr = String.Format("{0}.{1}.{2}.{3}", versionInfo.Major.ToString(), versionInfo.Minor.ToString(), versionInfo.Build.ToString(), versionInfo.Revision.ToString()); lblVersion.Text = String.Format("Version {0}", versionStr);

Why not to consider models in REST API versioning?

冷暖自知 提交于 2019-12-14 00:04:42
问题 There was an answer to similar question but that was too specific to an example and doesn't answer in general. Can any one please tell how to handle the below scenario if models are not versioned? PUT /v1/users username (string) email (string) (required) password (string) (required) POST /v2/users username (string) (required) email (string) required password (string) (required) Assuming the model name is UserModel , in v1 version username is optional but in V2 it's required. If we use a

How to update database by ant (versioning)?

会有一股神秘感。 提交于 2019-12-13 19:22:14
问题 I have a web application on java, which is working with database. I need an ant’s script that will deploy or update my application to latest version. There is no problem with application part, but I don't know how to do database update. I have an idea to build-in some meta-information (number of version) to the names of sql scripts. For example: DB_1.0.0.sql DB_1.0.1.sql DB_1.2.0.sql DB_2.0.0.sql DB_2.1.0.sql My script detected, that current version was 1.0.1, so I need to execute DB_1.2.0

How do PHP releases match “API=yyyymmdd” signature/tag?

大兔子大兔子 提交于 2019-12-13 15:08:51
问题 Is there a definite and reliable source to find out which PHP release version x.y.z carries/uses which "API=yyyymmdd" signature/tag? 回答1: The version control repository of PHP is the authoritative source on the correlation between PHP releases and their API date-versions. Assuming bash Fetch PHP. git clone https://github.com/php/php-src.git cd php-src list of relevant tags tags() { git tag | sed -En ' /(RC|alpha|beta)/d ; /php-5/p ; ' | sort -t. -k1,1n -k2,2n -k3,3n } some 270 log entries for

file grained vs line grained version control systems

与世无争的帅哥 提交于 2019-12-13 09:52:06
问题 What are some examples of version control systems that work on files and on lines of files? In my understanding, a control system that works on file is able to automatically manage merges whenever there are no file conflicts: for example: A,B,C --> A',B',C | (branch) ___________ (merge) -> A',B',C' -------> A,B,C' In what cases a version control system that work on lines is able to manage merge by itself and in what other cases it asks the developer to solve them? 回答1: Your questions is too

How to delete versions without having column name in sharepoint list

走远了吗. 提交于 2019-12-13 09:27:56
问题 In version history i am getting some duplicate versions with out any field changed....So for those versions the column name will be empty. Programmatically i would like to delete the versions in the version history where no column name specified... Please help.. In the image you can see the blank versions...I need to remove those versions 回答1: The code below deletes versions from the list item. You can re-use it and add the condition of checking the name as empty. /// /// Removes unneeded

How to update git metadata in a Python Packages using Setuptools and PBR

一曲冷凌霜 提交于 2019-12-13 04:36:30
问题 Working with versions generated from git repo tags by pbr I'm having issues getting the version info from my package, which is setup as a normal Python package using setuptools with the pbr extension. pbr will pull the version info from the tags in a git repo so there is a single source of truth. I did get the basics working - see this Q&A for more info. It is working overall, if I make a full distribution of the package. For example: py setup.py sdist will create a full distribution and the