git-multirepo 1.0.0.beta45 → 1.0.0.beta46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +2 -2
  3. data/.gitbugtraq +3 -3
  4. data/.gitignore +38 -38
  5. data/.multirepo +21 -21
  6. data/.multirepo.lock +26 -26
  7. data/.multirepo.meta +2 -2
  8. data/.rspec +2 -2
  9. data/Gemfile +4 -4
  10. data/Gemfile.lock +42 -42
  11. data/LICENSE +22 -22
  12. data/README.md +154 -144
  13. data/Rakefile +2 -2
  14. data/bin/multi +10 -10
  15. data/docs/bug-repros/91565510-repro.sh +20 -20
  16. data/docs/git-multirepo-cheatsheet.docx +0 -0
  17. data/git-multirepo.gemspec +31 -31
  18. data/lib/commands.rb +14 -14
  19. data/lib/git-multirepo.rb +2 -2
  20. data/lib/info.rb +4 -4
  21. data/lib/multirepo/commands/add-command.rb +50 -50
  22. data/lib/multirepo/commands/branch-command.rb +81 -81
  23. data/lib/multirepo/commands/checkout-command.rb +119 -119
  24. data/lib/multirepo/commands/clone-command.rb +67 -67
  25. data/lib/multirepo/commands/command.rb +89 -89
  26. data/lib/multirepo/commands/do-command.rb +102 -100
  27. data/lib/multirepo/commands/graph-command.rb +42 -42
  28. data/lib/multirepo/commands/init-command.rb +119 -119
  29. data/lib/multirepo/commands/inspect-command.rb +38 -39
  30. data/lib/multirepo/commands/install-command.rb +146 -137
  31. data/lib/multirepo/commands/merge-command.rb +225 -225
  32. data/lib/multirepo/commands/open-command.rb +56 -55
  33. data/lib/multirepo/commands/remove-command.rb +47 -47
  34. data/lib/multirepo/commands/uninit-command.rb +17 -17
  35. data/lib/multirepo/commands/update-command.rb +55 -55
  36. data/lib/multirepo/config.rb +15 -15
  37. data/lib/multirepo/files/config-entry.rb +38 -38
  38. data/lib/multirepo/files/config-file.rb +45 -45
  39. data/lib/multirepo/files/lock-entry.rb +28 -28
  40. data/lib/multirepo/files/lock-file.rb +55 -55
  41. data/lib/multirepo/files/meta-file.rb +40 -40
  42. data/lib/multirepo/files/tracking-file.rb +8 -8
  43. data/lib/multirepo/files/tracking-files.rb +46 -46
  44. data/lib/multirepo/git/branch.rb +31 -31
  45. data/lib/multirepo/git/change.rb +10 -10
  46. data/lib/multirepo/git/commit.rb +6 -6
  47. data/lib/multirepo/git/git-runner.rb +46 -46
  48. data/lib/multirepo/git/git.rb +9 -9
  49. data/lib/multirepo/git/ref.rb +37 -37
  50. data/lib/multirepo/git/remote.rb +16 -16
  51. data/lib/multirepo/git/repo.rb +122 -122
  52. data/lib/multirepo/hooks/post-commit-hook.rb +22 -22
  53. data/lib/multirepo/hooks/pre-commit-hook.rb +34 -34
  54. data/lib/multirepo/logic/dependency.rb +5 -5
  55. data/lib/multirepo/logic/merge-descriptor.rb +94 -94
  56. data/lib/multirepo/logic/node.rb +71 -71
  57. data/lib/multirepo/logic/performer.rb +56 -56
  58. data/lib/multirepo/logic/revision-selector.rb +34 -34
  59. data/lib/multirepo/multirepo-exception.rb +5 -5
  60. data/lib/multirepo/utility/console.rb +51 -51
  61. data/lib/multirepo/utility/runner.rb +34 -34
  62. data/lib/multirepo/utility/utils.rb +94 -94
  63. data/resources/.gitconfig +2 -2
  64. data/resources/post-commit +5 -5
  65. data/resources/pre-commit +5 -5
  66. data/spec/integration/init_spec.rb +18 -18
  67. data/spec/spec_helper.rb +89 -89
  68. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 361b68527d2c9b898a62bedfaa471f44e2f6efef
4
- data.tar.gz: 1eed81c527c179d8048c088feb7be89615bfef32
3
+ metadata.gz: 806e480c091c8f8428f1df498efc838c4c8c3177
4
+ data.tar.gz: cb5be2b5d4e2c69596f1522f890f91e079599211
5
5
  SHA512:
6
- metadata.gz: 23212fa9a47c6c53096c96796c62f529892d5151673399c0335be6065cf4a7bc9ef57d762a460046709e24290f0aa9bc8d9f7970518da6a165f34779ebff84e7
7
- data.tar.gz: ad3f69b29252e51876fcd5d9972bf84eb709e9e81a37a5b2800c47e66777e9236d77aa4fd3d0f38fb6736b5be5f1b695c90355e60ad4948a87ad89c1de2a6b97
6
+ metadata.gz: a554908bde6b65d0d78408932af1779f7752d353be0762d3903f264293e71556eb37f07cb0528424acc6cdec1f44043659545e7460b46ec0d0eec76980f88fce
7
+ data.tar.gz: 0a6523358b1803bb599a59953dec0131eb2385871cbadd714c25bcdf1911b99476e180840e1e5ac0bfb69d20c5d627ef0a2918b00ece70dd10473bad6046c4c7
data/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- .multirepo.lock merge=ours
2
- .multirepo.meta merge=ours
1
+ .multirepo.lock merge=ours
2
+ .multirepo.meta merge=ours
data/.gitbugtraq CHANGED
@@ -1,3 +1,3 @@
1
- [bugtraq "pivotal"]
2
- url = https://www.pivotaltracker.com/story/show/%BUGID%
3
- logRegex = (\\b\\d{8}\\b)
1
+ [bugtraq "pivotal"]
2
+ url = https://www.pivotaltracker.com/story/show/%BUGID%
3
+ logRegex = (\\b\\d{8}\\b)
data/.gitignore CHANGED
@@ -1,38 +1,38 @@
1
- *.gem
2
- *.rbc
3
- /.config
4
- /coverage/
5
- /InstalledFiles
6
- /pkg/
7
- /spec/reports/
8
- /test/tmp/
9
- /test/version_tmp/
10
- /tmp/
11
-
12
- ## Specific to RubyMotion:
13
- .dat*
14
- .repl_history
15
- build/
16
-
17
- ## Documentation cache and generated files:
18
- /.yardoc/
19
- /_yardoc/
20
- /doc/
21
- /rdoc/
22
-
23
- ## Environment normalisation:
24
- /.bundle/
25
- /lib/bundler/man/
26
-
27
- # for a library or gem, you might want to ignore these files since the code is
28
- # intended to run in multiple environments; otherwise, check them in:
29
- # Gemfile.lock
30
- # .ruby-version
31
- # .ruby-gemset
32
-
33
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
- .rvmrc
35
-
36
- # Project-specific
37
- /.multirepo
38
- /.multirepo.lock
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /.bundle/
25
+ /lib/bundler/man/
26
+
27
+ # for a library or gem, you might want to ignore these files since the code is
28
+ # intended to run in multiple environments; otherwise, check them in:
29
+ # Gemfile.lock
30
+ # .ruby-version
31
+ # .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
35
+
36
+ # Project-specific
37
+ /.multirepo
38
+ /.multirepo.lock
data/.multirepo CHANGED
@@ -1,21 +1,21 @@
1
- ---
2
- - !ruby/object:MultiRepo::ConfigEntry
3
- id: e27695e9-e21d-4ad1-81b8-0ed587574c38
4
- path: ../git-multirepo-dummy/
5
- url: git@github.com:fortinmike/git-multirepo-dummy.git
6
- - !ruby/object:MultiRepo::ConfigEntry
7
- id: dcb567d6-7456-494a-b7b5-adc208a87f2f
8
- path: ../git-multirepo-dummy-dep1/
9
- url: git@github.com:fortinmike/git-multirepo-dummy-dep1.git
10
- - !ruby/object:MultiRepo::ConfigEntry
11
- id: e0dc3ed7-4b6b-4052-8783-668b405e4941
12
- path: ../git-multirepo-dummy-dep2/
13
- url: git@github.com:fortinmike/git-multirepo-dummy-dep2.git
14
- - !ruby/object:MultiRepo::ConfigEntry
15
- id: ad6472a5-7238-447f-a54e-50f50197e21e
16
- path: ../git-multirepo-migrations/
17
- url: git@github.com:fortinmike/git-multirepo-migrations.git
18
- - !ruby/object:MultiRepo::ConfigEntry
19
- id: 6575a4fd-fe53-4c7b-bb79-bc6412df18e3
20
- path: ../git-multirepo.gh-pages
21
- url: git@github.com:fortinmike/git-multirepo.git
1
+ ---
2
+ - !ruby/object:MultiRepo::ConfigEntry
3
+ id: e27695e9-e21d-4ad1-81b8-0ed587574c38
4
+ path: ../git-multirepo-dummy/
5
+ url: git@github.com:fortinmike/git-multirepo-dummy.git
6
+ - !ruby/object:MultiRepo::ConfigEntry
7
+ id: dcb567d6-7456-494a-b7b5-adc208a87f2f
8
+ path: ../git-multirepo-dummy-dep1/
9
+ url: git@github.com:fortinmike/git-multirepo-dummy-dep1.git
10
+ - !ruby/object:MultiRepo::ConfigEntry
11
+ id: e0dc3ed7-4b6b-4052-8783-668b405e4941
12
+ path: ../git-multirepo-dummy-dep2/
13
+ url: git@github.com:fortinmike/git-multirepo-dummy-dep2.git
14
+ - !ruby/object:MultiRepo::ConfigEntry
15
+ id: ad6472a5-7238-447f-a54e-50f50197e21e
16
+ path: ../git-multirepo-migrations/
17
+ url: git@github.com:fortinmike/git-multirepo-migrations.git
18
+ - !ruby/object:MultiRepo::ConfigEntry
19
+ id: 6575a4fd-fe53-4c7b-bb79-bc6412df18e3
20
+ path: ../git-multirepo.gh-pages
21
+ url: git@github.com:fortinmike/git-multirepo.git
data/.multirepo.lock CHANGED
@@ -1,26 +1,26 @@
1
- ---
2
- - !ruby/object:MultiRepo::LockEntry
3
- name: git-multirepo-dummy
4
- id: e27695e9-e21d-4ad1-81b8-0ed587574c38
5
- head: 210de2d6bef8ceb4dd4c8cd95c502c00e49d029a
6
- branch: master
7
- - !ruby/object:MultiRepo::LockEntry
8
- name: git-multirepo-dummy-dep1
9
- id: dcb567d6-7456-494a-b7b5-adc208a87f2f
10
- head: 3e589d4d391beee411c292a3ce20d06f51fa3c3a
11
- branch: HEAD
12
- - !ruby/object:MultiRepo::LockEntry
13
- name: git-multirepo-dummy-dep2
14
- id: e0dc3ed7-4b6b-4052-8783-668b405e4941
15
- head: 1b8465fcd4f9e5821640bb45ad8c22c960b64517
16
- branch: HEAD
17
- - !ruby/object:MultiRepo::LockEntry
18
- name: git-multirepo-migrations
19
- id: ad6472a5-7238-447f-a54e-50f50197e21e
20
- head: 15ee465101c368193a052cd1f5b0c5accc6fb9fa
21
- branch: master
22
- - !ruby/object:MultiRepo::LockEntry
23
- name: git-multirepo.gh-pages
24
- id: 6575a4fd-fe53-4c7b-bb79-bc6412df18e3
25
- head: e73bbaa0b3de97b1a2aea223d6f69f5e31ceb285
26
- branch: gh-pages
1
+ ---
2
+ - !ruby/object:MultiRepo::LockEntry
3
+ name: git-multirepo-dummy
4
+ id: e27695e9-e21d-4ad1-81b8-0ed587574c38
5
+ head: 210de2d6bef8ceb4dd4c8cd95c502c00e49d029a
6
+ branch: master
7
+ - !ruby/object:MultiRepo::LockEntry
8
+ name: git-multirepo-dummy-dep1
9
+ id: dcb567d6-7456-494a-b7b5-adc208a87f2f
10
+ head: 3e589d4d391beee411c292a3ce20d06f51fa3c3a
11
+ branch: master
12
+ - !ruby/object:MultiRepo::LockEntry
13
+ name: git-multirepo-dummy-dep2
14
+ id: e0dc3ed7-4b6b-4052-8783-668b405e4941
15
+ head: 1b8465fcd4f9e5821640bb45ad8c22c960b64517
16
+ branch: master
17
+ - !ruby/object:MultiRepo::LockEntry
18
+ name: git-multirepo-migrations
19
+ id: ad6472a5-7238-447f-a54e-50f50197e21e
20
+ head: 15ee465101c368193a052cd1f5b0c5accc6fb9fa
21
+ branch: master
22
+ - !ruby/object:MultiRepo::LockEntry
23
+ name: git-multirepo.gh-pages
24
+ id: 6575a4fd-fe53-4c7b-bb79-bc6412df18e3
25
+ head: e73bbaa0b3de97b1a2aea223d6f69f5e31ceb285
26
+ branch: gh-pages
data/.multirepo.meta CHANGED
@@ -1,2 +1,2 @@
1
- --- !ruby/object:MultiRepo::MetaFile
2
- version: 1.0.0.beta44
1
+ --- !ruby/object:MultiRepo::MetaFile
2
+ version: 1.0.0.beta45
data/.rspec CHANGED
@@ -1,2 +1,2 @@
1
- --color
2
- --require spec_helper
1
+ --color
2
+ --require spec_helper
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in git-multirepo.gemspec
4
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in git-multirepo.gemspec
4
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,42 +1,42 @@
1
- PATH
2
- remote: .
3
- specs:
4
- git-multirepo (1.0.0.beta38)
5
- claide (~> 0.8, >= 0.8.0)
6
- colored (~> 1.2)
7
- os (~> 0.9.6)
8
- ruby-graphviz (~> 1.2.1)
9
- terminal-table (~> 1.4.5)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- claide (0.8.1)
15
- colored (1.2)
16
- diff-lcs (1.2.5)
17
- os (0.9.6)
18
- rake (10.4.2)
19
- rspec (3.1.0)
20
- rspec-core (~> 3.1.0)
21
- rspec-expectations (~> 3.1.0)
22
- rspec-mocks (~> 3.1.0)
23
- rspec-core (3.1.7)
24
- rspec-support (~> 3.1.0)
25
- rspec-expectations (3.1.2)
26
- diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.1.0)
28
- rspec-mocks (3.1.3)
29
- rspec-support (~> 3.1.0)
30
- rspec-support (3.1.2)
31
- ruby-graphviz (1.2.2)
32
- terminal-table (1.4.5)
33
-
34
- PLATFORMS
35
- ruby
36
- x64-mingw32
37
-
38
- DEPENDENCIES
39
- bundler (~> 1.7)
40
- git-multirepo!
41
- rake (~> 10.0)
42
- rspec (~> 3.1.0)
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ git-multirepo (1.0.0.beta38)
5
+ claide (~> 0.8, >= 0.8.0)
6
+ colored (~> 1.2)
7
+ os (~> 0.9.6)
8
+ ruby-graphviz (~> 1.2.1)
9
+ terminal-table (~> 1.4.5)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ claide (0.8.1)
15
+ colored (1.2)
16
+ diff-lcs (1.2.5)
17
+ os (0.9.6)
18
+ rake (10.4.2)
19
+ rspec (3.1.0)
20
+ rspec-core (~> 3.1.0)
21
+ rspec-expectations (~> 3.1.0)
22
+ rspec-mocks (~> 3.1.0)
23
+ rspec-core (3.1.7)
24
+ rspec-support (~> 3.1.0)
25
+ rspec-expectations (3.1.2)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.1.0)
28
+ rspec-mocks (3.1.3)
29
+ rspec-support (~> 3.1.0)
30
+ rspec-support (3.1.2)
31
+ ruby-graphviz (1.2.2)
32
+ terminal-table (1.4.5)
33
+
34
+ PLATFORMS
35
+ ruby
36
+ x64-mingw32
37
+
38
+ DEPENDENCIES
39
+ bundler (~> 1.7)
40
+ git-multirepo!
41
+ rake (~> 10.0)
42
+ rspec (~> 3.1.0)
data/LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Michaël Fortin
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Michaël Fortin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+