New answers tagged versioning
Assuming that you have only major versions enabled in document library. SharePoint's default behavior is the same when you are getting the version number in REST query. The checked in version is: 6.0 After checking out it became 7.0 version. However, if you want to display the last checked in version of the file you can get that idea from ...
After you get the list, enable versioning. Then load the list and call execute query async
_spBodyOnLoadFunctionNames takes function names. Therefore: _spBodyOnLoadFunctionNames.push("onPageLoad");
You can use also 3-rd party tool to move documents with their versions - e.x. SharePoint Copy & Move Files. Althought this is paid version, it has 30 days trial, so you can test everything.
As mentioned here: Introduction to versioning. By default, each major version can have up to 511 drafts (minor versions) This should still hold true for SharePoint 2013.
Top 50 recent answers are included