diff --git a/lib/ohloh_scm/adapters/hg_adapter.rb b/lib/ohloh_scm/adapters/hg_adapter.rb index 427668b1..8291de2c 100644 --- a/lib/ohloh_scm/adapters/hg_adapter.rb +++ b/lib/ohloh_scm/adapters/hg_adapter.rb @@ -1,9 +1,13 @@ module OhlohScm::Adapters - class HgAdapter < AbstractAdapter - def english_name - "Mercurial" - end - end + class HgAdapter < AbstractAdapter + def english_name + "Mercurial" + end + + def branch_name=(branch_name) + @branch_name = branch_name.to_s.empty? ? nil : branch_name + end + end end require_relative 'hg/validation'