Commits

Alessio Caiazza  committed 05f3a27

avoid hg interaction in `rake release` because I'm using hgflow extension

  • Participants
  • Parent commits 51407cf
  • Branches release/0.0.28

Comments (0)

Files changed (1)

     alias_method :guard_already_tagged, :hg_guard_already_tagged
 
     def hg_tag_version
-      sh "hg tag -m \"Version #{version}\" #{version_tag}"
-      Bundler.ui.confirm "Tagged #{version_tag}"
+      #sh "hg tag -m \"Version #{version}\" #{version_tag}"
+      #Bundler.ui.confirm "Tagged #{version_tag}"
       yield if block_given?
-    rescue
-      Bundler.ui.error "Untagged #{version_tag} due to error"
-      sh_with_code "hg tag --remove #{version_tag}"
-      raise
+    #rescue
+      #Bundler.ui.error "Untagged #{version_tag} due to error"
+      #sh_with_code "hg tag --remove #{version_tag}"
+      #raise
     end
     alias_method :tag_version, :hg_tag_version
 
     def hg_push
-      cmd = "hg push"
-      out, code = sh_with_code(cmd)
-      raise "Couldn't hg push. `#{cmd}' failed with the following output:\n\n#{out}\n" unless code == 0
-      Bundler.ui.confirm "Pushed hg commits and tags"
+      #cmd = "hg push"
+      #out, code = sh_with_code(cmd)
+      #raise "Couldn't hg push. `#{cmd}' failed with the following output:\n\n#{out}\n" unless code == 0
+      #Bundler.ui.confirm "Pushed hg commits and tags"
     end
     alias_method :git_push, :hg_push
   end