kookeeper 3.0.6 → 3.0.7
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: 57f6a3e487540db4bdd18bf917a4ae6a6da9a01b5c703cc93ac1ff7fc44ea3c7
|
4
|
+
data.tar.gz: e8bf371127fe93b66c29bde4fc4d5dbcb4a19448cdc49706835bba5614929af1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b96c0d5aa8e3dca7eb245e11a99c6dc7981ff6d0592f2d2aa003219d259cec3b1e936e44d2e1726601720b4a42314997cf5e8702b82f3dc5c0ec029b44208a4
|
7
|
+
data.tar.gz: 0a45a6cd29b64e31a99dfa6e95c5e334111e88c50c2bc6b2e854e19f5d7f2bd13dba5f681b87045a773db8526dcf4c9fa3c28a477c446c810ac2835d2feef3b9
|
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,35 @@ 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
|
-
GitService.new.verify_home_branch(path,
|
18
|
+
home_branch_name = "release/#{full_name}"
|
19
|
+
GitService.new.verify_home_branch(path, home_branch_name, OperateType::SWITCH)
|
19
20
|
|
20
21
|
stash_modules = ModuleCacheOperator.new(path).all_path_modules
|
21
|
-
|
22
|
+
p "2.switch_to 暂存所有"
|
22
23
|
# Stash current branch
|
23
|
-
StashService.new.stash_all(path, branch_name, user, stash_modules)
|
24
|
-
|
24
|
+
StashService.new.stash_all(path, branch_name, user, stash_modules,version)
|
25
|
+
p "3.switch_to checkout #{home_branch_name}"
|
25
26
|
# Switch to new feature
|
26
|
-
GitOperator.new.checkout(path,
|
27
|
+
GitOperator.new.checkout(path, home_branch_name)
|
27
28
|
GitOperator.new.pull(path)
|
28
|
-
|
29
|
+
p "4.switch_to"
|
29
30
|
# Apply home stash
|
30
|
-
StashService.new.pop_stash(path,
|
31
|
+
StashService.new.pop_stash(path, home_branch_name, 'Home')
|
31
32
|
|
32
33
|
modules = ModuleCacheOperator.new(path).all_path_modules
|
33
34
|
|
34
35
|
modules.each do |module_name|
|
35
36
|
ModuleService.new.switch_to(path, user, module_name, branch_name, type)
|
36
37
|
end
|
37
|
-
|
38
|
+
p "5.switch_to"
|
38
39
|
# Install
|
39
40
|
DepService.dep_operator(path, user).install(false)
|
40
|
-
|
41
|
+
p "6.switch_to"
|
41
42
|
# Open home workspace
|
42
43
|
DepService.dep_operator(path, user).open
|
43
44
|
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.7
|
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
|