1Test::AutoBuild::ChangeU(s3e)r Contributed Perl DocumentaTteisotn::AutoBuild::Change(3)
2
3
4
6 Test::AutoBuild::Change - Details of change in source control
7 repository
8
10 use Test::AutoBuild::Change
11
13 This module provides a representation of a change in a source control
14 repository. The "export" method on the Test::AutoBuild::Repository
15 class will returns a hash reference containing this objects as values
16 to represent the list of changes since the previous call to "export"
17
19 my $change = Test::AutoBuild::Change->new(%params);
20 Creates a new change object, initializing with a set of named
21 parameters. The "number" parameter is a number representing the
22 change, typically either a plain integer, or a version string (ie
23 set of period separated integers). The "date" parameter specifies
24 in seconds since the epoch, date the change was made. The "user"
25 parameter is a representation of the user who made the change,
26 typically their username. The "description" parameter provides the
27 log message for the change. Finally the "files" parameter is an
28 array reference listing all the files affected by the changelist.
29
30 my $number = $change->number();
31 Retrieves the number associated with this change. This is typically
32 an integer (eg 43212), or a version string (eg 1.5.2).
33
34 my $date = $change->date();
35 Retrieves the date on which the change was made. This is in seconds
36 since the epoch.
37
38 my $user = $change->user();
39 Retrieves the user who made the change, typically the username
40 under which the repository was accessed.
41
42 my $log = $change->description();
43 Retrieves the log message associated with this change.
44
45 my $fils = $change->files();
46 Retrieves an array reference specifying the list of files affected
47 by this change.
48
50 Daniel Berrange <dan@berrange.com>
51
53 Copyright (C) 2005 Daniel Berrange <dan@berrange.com>
54
56 perl(1), Test::AutoBuild::Repository
57
58
59
60perl v5.12.1 2007-12-08 Test::AutoBuild::Change(3)