lib/mercurial-ruby/diff.rb in mercurial-ruby-0.4.0 vs lib/mercurial-ruby/diff.rb in mercurial-ruby-0.5.0
- old
+ new
@@ -7,13 +7,10 @@
# for assembling instances of Diff. For the list of all possible diff-related operations please
# look documentation for {Mercurial::DiffFactory DiffFactory}.
#
class Diff
- # Instance of {Mercurial::Commit Commit}.
- attr_reader :commit
-
# SHA1 hash of version a of the file.
attr_reader :hash_a
# SHA1 hash of version b of the file.
attr_reader :hash_b
@@ -25,11 +22,10 @@
attr_reader :file_b
# Diff body.
attr_reader :body
- def initialize(commit, opts={})
- @commit = commit
+ def initialize(opts={})
@hash_a = opts[:hash_a]
@hash_b = opts[:hash_b]
@file_a = opts[:file_a]
@file_b = opts[:file_b]
@body = opts[:body]
\ No newline at end of file