summaryrefslogtreecommitdiffstats
path: root/app/models/repository/mercurial.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-01 04:23:53 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-01 04:23:53 +0000
commit5dcecec1bd8ac41d3e32b72f814b38e7040a7de1 (patch)
tree11472823abdc51dba41a51ecb7472a70416fb5f1 /app/models/repository/mercurial.rb
parentfdc0731cb56e9b093a4b268533e5da77a54e620a (diff)
downloadredmine-5dcecec1bd8ac41d3e32b72f814b38e7040a7de1.tar.gz
redmine-5dcecec1bd8ac41d3e32b72f814b38e7040a7de1.zip
scm: mercurial: use 12 chars id for format_changeset_identifier (#14361)
git-svn-id: http://svn.redmine.org/redmine/trunk@12749 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/mercurial.rb')
-rw-r--r--app/models/repository/mercurial.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository/mercurial.rb b/app/models/repository/mercurial.rb
index 37c3e00ba..dcd07dad5 100644
--- a/app/models/repository/mercurial.rb
+++ b/app/models/repository/mercurial.rb
@@ -59,7 +59,7 @@ class Repository::Mercurial < Repository
# Returns the readable identifier for the given mercurial changeset
def self.format_changeset_identifier(changeset)
- "#{changeset.revision}:#{changeset.scmid}"
+ "#{changeset.revision}:#{changeset.scmid[0, 12]}"
end
# Returns the identifier for the given Mercurial changeset