lib/ohloh_scm/adapters/hg/head.rb in ohloh_scm-2.4.14 vs lib/ohloh_scm/adapters/hg/head.rb in ohloh_scm-2.5.1

- old
+ new

@@ -1,10 +1,10 @@ module OhlohScm::Adapters class HgAdapter < AbstractAdapter def head_token # This only returns first 12 characters. # How can we make it return the entire hash? - branch_opts = "--rev #{branch_name || :default}" + branch_opts = "--rev #{branch_name_or_default}" token = run("hg id --debug -i -q #{url} #{branch_opts}").strip # Recent versions of Hg now somtimes append a '+' char to the token. # I believe this signifies pending changes... but we don't care. # Strip the trailing '+', if any.