hoe-hg 1.0.0 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +2 -0
- data/Rakefile +1 -0
- data/lib/hoe/hg.rb +6 -5
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
data/Rakefile
CHANGED
data/lib/hoe/hg.rb
CHANGED
@@ -19,7 +19,7 @@ class Hoe #:nodoc:
|
|
19
19
|
|
20
20
|
module Hg
|
21
21
|
|
22
|
-
VERSION = "1.0.
|
22
|
+
VERSION = "1.0.3"
|
23
23
|
|
24
24
|
attr_accessor :hg_release_tag_prefix
|
25
25
|
attr_accessor :hg_repo, :hg_release_branch
|
@@ -27,6 +27,7 @@ class Hoe #:nodoc:
|
|
27
27
|
def initialize_hg #:nodoc:
|
28
28
|
self.hg_release_tag_prefix = "r"
|
29
29
|
self.hg_release_branch = "default"
|
30
|
+
self.hg_repo = ""#use whatever is configured in hgrc
|
30
31
|
end
|
31
32
|
|
32
33
|
def define_hg_tasks #:nodoc:
|
@@ -45,7 +46,7 @@ class Hoe #:nodoc:
|
|
45
46
|
desc "Create and push a TAG (default #{hg_release_tag_prefix}#{version})."
|
46
47
|
|
47
48
|
task "hg:tag" do
|
48
|
-
|
49
|
+
puts "tagging and pushing #{hg_release_branch} to '#{hg_repo}' or whatever you have configured in .hg/hgrc."
|
49
50
|
tag ||= "#{hg_release_tag_prefix}#{ENV["VERSION"] || version}"
|
50
51
|
|
51
52
|
hg_tag_and_push tag
|
@@ -61,9 +62,9 @@ class Hoe #:nodoc:
|
|
61
62
|
task :release => "hg:tag"
|
62
63
|
end
|
63
64
|
|
64
|
-
def hg_tag_and_push
|
65
|
-
sh "hg tag -m 'tagging #{tag} for release'"
|
66
|
-
sh "hg push #{hg_repo} -r #{
|
65
|
+
def hg_tag_and_push tag
|
66
|
+
sh "hg tag -m 'tagging #{tag} for release' #{tag}"
|
67
|
+
sh "hg push #{hg_repo} -r #{hg_release_branch}"
|
67
68
|
end
|
68
69
|
|
69
70
|
end
|