The following methods are available:
new, add, count, get, get_listing, is_changed, dump, type_string, to_string.
new Creates a new, initially empty, changes list.
Typically it is called indirectly from method get_changes in Arch::Changeset, Arch::Tree or Arch::Log
class.
addtypeis_dirarguments...
Adds a new change element to the list of changes.
Typically it is called indirectly from method get_changes in Arch::Changeset, Arch::Tree or Arch::Log
class.
count
Returns the number of change elements.
getnum
Returns the num-th change element or all if num is undefined.
get_listing
Generates a textual changes listing as produced by "tla changes".
is_changedtofilepath [is_dir]
Verify whether the given filepath is modified by the changes. The to parameter may get boolean values
"0", "1", "from" or "to", it only affects RENAME changes, and in some sense ADD and DELETE changes.
If to is set, then the given filepath is taken as the destination of RENAME or ADD, otherwise as the
source of RENAME or DELETE. The MODIFY and META_MODIFY changes are not affected, since the
destination and the source is the same file/dir.
If filepath is not modified by any changes, return undef.
Otherwise, return hash with possible keys ADD, DELETE, MODIFY, META_MODIFY and RENAME. The hash
values are 1 in all cases except for RENAME, then the value is the file name on the opposite side
(i.e., the source of RENAME if to is true, and the destination if false).
Note, the valid return values for arch are: undef, hashref with one key (ADD or DELETE) or hashref
with combination of one-to-three keys (MODIFY, META_MODIFY and RENAME).
dump
Generates a dump of the changes list using Data::Dumper.
type_stringchange
Returns the change type string as produced by "tla changes".
to_stringchange
Generates a changes line for change as produced by "tla changes".