Class: Amp::Core::Repositories::AbstractChangeset
- Inherits:
-
Object
- Object
- Amp::Core::Repositories::AbstractChangeset
- Includes:
- CommonChangesetMethods, Comparable, Enumerable
- Defined in:
- lib/amp-core/repository/abstract/abstract_changeset.rb
Instance Method Summary collapse
-
#<=>(other) ⇒ Integer
How does this changeset compare to
other
? Used in sorting. -
#all_files ⇒ Array<String>
Returns a list of all files that are tracked at this current revision.
-
#altered_files ⇒ Array<String>
What files have been altered in this changeset?.
-
#branch ⇒ String
Which branch this changeset belongs to.
-
#date ⇒ Time
When was the changeset made?.
- #description ⇒ String
-
#each ⇒ AbstractChangeset
Iterates over every tracked file in this changeset.
-
#get_file(filename) ⇒ AbstractVersionedFile
(also: #[])
Retrieve
filename
. -
#parents ⇒ Array<Abstract Changeset>
the nodes that this node inherits from.
-
#user ⇒ String
The user who made the changeset.
-
#working? ⇒ Boolean
Is this changeset a working changeset?.
Methods included from CommonChangesetMethods
#changed_files, #changed_lines_statistics, #include?, #template_for_options, #to_templated_s, #useful_parents, #walk
Instance Method Details
#<=>(other) ⇒ Integer
How does this changeset compare to other
? Used in sorting.
44 45 46 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 44 def <=>(other) raise NotImplementedError.new("<=>() must be implemented by subclasses of AbstractChangeset.") end |
#all_files ⇒ Array<String>
Returns a list of all files that are tracked at this current revision.
99 100 101 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 99 def all_files raise NotImplementedError.new("all_files() must be implemented by subclasses of AbstractChangeset.") end |
#altered_files ⇒ Array<String>
What files have been altered in this changeset?
91 92 93 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 91 def altered_files raise NotImplementedError.new("altered_files() must be implemented by subclasses of AbstractChangeset.") end |
#branch ⇒ String
Which branch this changeset belongs to
77 78 79 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 77 def branch raise NotImplementedError.new("branch() must be implemented by subclasses of AbstractChangeset.") end |
#date ⇒ Time
When was the changeset made?
61 62 63 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 61 def date raise NotImplementedError.new("date() must be implemented by subclasses of AbstractChangeset.") end |
#description ⇒ String
83 84 85 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 83 def description raise NotImplementedError.new("description() must be implemented by subclasses of AbstractChangeset.") end |
#each ⇒ AbstractChangeset
Iterates over every tracked file in this changeset.
35 36 37 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 35 def each raise NotImplementedError.new("each() must be implemented by subclasses of AbstractChangeset.") end |
#get_file(filename) ⇒ AbstractVersionedFile Also known as: []
Retrieve filename
52 53 54 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 52 def get_file(filename) raise NotImplementedError.new("get_file() must be implemented by subclasses of AbstractChangeset.") end |
#parents ⇒ Array<Abstract Changeset>
the nodes that this node inherits from
27 28 29 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 27 def parents raise NotImplementedError.new("parents() must be implemented by subclasses of AbstractChangeset.") end |
#user ⇒ String
The user who made the changeset
69 70 71 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 69 def user raise NotImplementedError.new("user() must be implemented by subclasses of AbstractChangeset.") end |
#working? ⇒ Boolean
Is this changeset a working changeset?
106 107 108 |
# File 'lib/amp-core/repository/abstract/abstract_changeset.rb', line 106 def working? raise NotImplementedError.new("working() must be implemented by subclasses of AbstractChangeset.") end |