kookeeper 3.0.6 → 3.0.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 886b326b907296e3ddeeac5e62b4614815151265401e5b67bf34a59af4174c2f
|
4
|
+
data.tar.gz: d5a76a7cb2bcca2271c1536946f2a5f07aab71542bc83c19318f6b4e0a26baa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdc9706567ef75dc19977213a4ba85b1ef3f2433411d5604aa7dfd0da201ba896638843b9ac15338765dd6df2647f5ff26286d1a2f9d1e65f62b08dfc8d5a136
|
7
|
+
data.tar.gz: 01161b62cae921cb92e5e91b99b9d2a97f6968e39bc4b4bb50ccd8c721e5b1e316d253567f2a6f4bcdc35202567c803a968aa7ebcbbfda10f8e7449dbf87bd12
|
data/Gemfile.lock
CHANGED
@@ -17,7 +17,7 @@ require 'big_keeper/service/module_service'
|
|
17
17
|
|
18
18
|
|
19
19
|
module BigKeeper
|
20
|
-
def self.start(path, version, user,
|
20
|
+
def self.start(path, version, user, modules, type)
|
21
21
|
begin
|
22
22
|
# Parse Bigkeeper file
|
23
23
|
p "----------1.开始解析#{path}/Bigkeeper"
|
@@ -26,7 +26,9 @@ module BigKeeper
|
|
26
26
|
version = BigkeeperParser.version if version == 'Version in Bigkeeper file'
|
27
27
|
|
28
28
|
p "----------2.version:#{version}"
|
29
|
-
|
29
|
+
|
30
|
+
full_name = "#{version}"
|
31
|
+
#full_name = "#{version}_#{user}_#{name}"
|
30
32
|
p "----------3.full_name:#{full_name}"
|
31
33
|
branch_name = "#{GitflowType.name(type)}/#{full_name}"
|
32
34
|
p "----------4.branch_name:#{branch_name}"
|
@@ -10,34 +10,36 @@ module BigKeeper
|
|
10
10
|
def self.switch_to(path, version, user, full_name, type)
|
11
11
|
begin
|
12
12
|
# Parse Bigkeeper file
|
13
|
+
p "1.switch_to #{version} 解析Bigkeeper"
|
13
14
|
BigkeeperParser.parse("#{path}/Bigkeeper")
|
14
15
|
|
15
16
|
version = BigkeeperParser.version if version == 'Version in Bigkeeper file'
|
16
17
|
branch_name = "#{GitflowType.name(type)}/#{full_name}"
|
17
|
-
|
18
|
-
|
18
|
+
ModuleCacheOperator.new(path).cache_branch_name(branch_name)
|
19
|
+
home_branch_name = "release/#{full_name}"
|
20
|
+
GitService.new.verify_home_branch(path, home_branch_name, OperateType::SWITCH)
|
19
21
|
|
20
22
|
stash_modules = ModuleCacheOperator.new(path).all_path_modules
|
21
|
-
|
23
|
+
p "2.switch_to 暂存所有"
|
22
24
|
# Stash current branch
|
23
|
-
StashService.new.stash_all(path, branch_name, user, stash_modules)
|
24
|
-
|
25
|
+
StashService.new.stash_all(path, branch_name, user, stash_modules,full_name)
|
26
|
+
p "3.switch_to checkout #{home_branch_name}"
|
25
27
|
# Switch to new feature
|
26
|
-
GitOperator.new.checkout(path,
|
28
|
+
GitOperator.new.checkout(path, home_branch_name)
|
27
29
|
GitOperator.new.pull(path)
|
28
|
-
|
30
|
+
p "4.switch_to"
|
29
31
|
# Apply home stash
|
30
|
-
StashService.new.pop_stash(path,
|
32
|
+
StashService.new.pop_stash(path, home_branch_name, 'Home')
|
31
33
|
|
32
34
|
modules = ModuleCacheOperator.new(path).all_path_modules
|
33
35
|
|
34
36
|
modules.each do |module_name|
|
35
37
|
ModuleService.new.switch_to(path, user, module_name, branch_name, type)
|
36
38
|
end
|
37
|
-
|
39
|
+
p "5.switch_to"
|
38
40
|
# Install
|
39
41
|
DepService.dep_operator(path, user).install(false)
|
40
|
-
|
42
|
+
p "6.switch_to"
|
41
43
|
# Open home workspace
|
42
44
|
DepService.dep_operator(path, user).open
|
43
45
|
ensure
|
@@ -24,9 +24,11 @@ module BigKeeper
|
|
24
24
|
|
25
25
|
help_now!('user name is required') if user and user.empty?
|
26
26
|
help_now!("#{GitflowType.name(type)} name is required") if args.length < 1
|
27
|
-
name = args[0]
|
28
|
-
modules = args[(1...args.length)] if args.length > 1
|
29
|
-
|
27
|
+
#name = args[0]
|
28
|
+
#modules = args[(1...args.length)] if args.length > 1
|
29
|
+
modules = args[(0...args.length)] if args.length > 0
|
30
|
+
#start(path, version, user, name, modules, type)
|
31
|
+
start(path, version, user, modules, type)
|
30
32
|
end
|
31
33
|
end
|
32
34
|
|
data/lib/big_keeper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kookeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mmoaay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|