d600daa8e7091c7a7c9020d7708feb0a853b760b

Author: Robin Luckey

Date: 2009-07-07 10:20:51 -0700

[FIX] HgAdapter: Speed improvement for cat_file_parent(). New implementation requires only 2 shell commands (rather than 3).

diff --git a/lib/scm/adapters/hg/cat_file.rb b/lib/scm/adapters/hg/cat_file.rb index ceaa04b..aa20ff8 100644 --- a/lib/scm/adapters/hg/cat_file.rb +++ b/lib/scm/adapters/hg/cat_file.rb @@ -5,8 +5,8 @@ module Scm::Adapters end def cat_file_parent(commit, diff) - p = parents(commit) - cat(p.first.token, diff.path) if p.first + p = parent_tokens(commit) + cat(p.first, diff.path) if p.first end def cat(revision, path)