« blib/lib/VCS/LibCVS/Client/Request/ArgumentUsingRequests.pm
↑ Summary
blib/lib/VCS/LibCVS/Client/Request/Requests.pm »
| 1 | # | ||
| 2 | # Copyright (c) 2003,2004,2005 Alexander Taler (dissent@0--0.org) | ||
| 3 | # | ||
| 4 | # All rights reserved. This program is free software; you can redistribute it | ||
| 5 | # and/or modify it under the same terms as Perl itself. | ||
| 6 | # | ||
| 7 | |||
| 8 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | VCS::LibCVS::Client::Response::FileUpdatingResponses - Classes for many Responses | ||
| 13 | |||
| 14 | =head1 SYNOPSIS | ||
| 15 | |||
| 16 | my @responses = Client::Response->read_from_server($server_conn); | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | The file updating responses are those which indicate a change to the status of | ||
| 21 | a file in the working directory. Each of them has a class here, along with a | ||
| 22 | common superclass. | ||
| 23 | |||
| 24 | Each response comes with a predetermined set of args, listed below. | ||
| 25 | |||
| 26 | =head1 SUPERCLASS | ||
| 27 | |||
| 28 | VCS::LibCVS::Client::Response | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | 1 | $VCS::LibCVS::Client::Response::FileUpdatingResponses::REVISION = '$Header: /cvsroot/libcvs-perl/libcvs-perl/VCS/LibCVS/Client/Response/FileUpdatingResponses.pm,v 1.14 2005/10/10 12:52:11 dissent Exp $ '; | |
| 33 | |||
| 34 | ############################################################################### | ||
| 35 | # FileUpdatingResponse | ||
| 36 | ############################################################################### | ||
| 37 | |||
| 38 | =head1 CLASSES | ||
| 39 | |||
| 40 | =head2 VCS::LibCVS::Client::Response::FileUpdateModifyingResponse | ||
| 41 | |||
| 42 | A common superclass for all the file updating responses. | ||
| 43 | |||
| 44 | =cut | ||
| 45 | |||
| 46 | package VCS::LibCVS::Client::Response::FileUpdatingResponse; | ||
| 47 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 48 | 1 | @ISA =("VCS::LibCVS::Client::Response"); | |
| 49 | |||
| 50 | ############################################################################### | ||
| 51 | # Checked-in | ||
| 52 | ############################################################################### | ||
| 53 | |||
| 54 | =head2 VCS::LibCVS::Client::Response::Checked_in | ||
| 55 | |||
| 56 | "PathName" "Entry" | ||
| 57 | |||
| 58 | =cut | ||
| 59 | |||
| 60 | package VCS::LibCVS::Client::Response::Checked_in; | ||
| 61 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 62 | 1 | @ISA =("VCS::LibCVS::Client::Response::FileUpdatingResponse"); | |
| 63 | 1 | ▶ | sub BEGIN { push @VCS::LibCVS::Client::Response::Valid_responses, "Checked-in";} |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 64 | 0 | ▶ | sub included_data { return ("PathName", "Entry"); } |
|
Subroutine
included_data: not called CC=1 SCAR=6.9
| |||
| 65 | |||
| 66 | ############################################################################### | ||
| 67 | # New-entry | ||
| 68 | ############################################################################### | ||
| 69 | |||
| 70 | =head2 VCS::LibCVS::Client::Response::New_entry | ||
| 71 | |||
| 72 | "PathName" "Entry" | ||
| 73 | |||
| 74 | =cut | ||
| 75 | |||
| 76 | package VCS::LibCVS::Client::Response::New_entry; | ||
| 77 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 78 | 1 | @ISA =("VCS::LibCVS::Client::Response::FileUpdatingResponse"); | |
| 79 | 1 | ▶ | sub BEGIN { push @VCS::LibCVS::Client::Response::Valid_responses, "New-entry"; } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 80 | 0 | ▶ | sub included_data { return ("PathName", "Entry"); } |
|
Subroutine
included_data: not called CC=1 SCAR=6.9
| |||
| 81 | |||
| 82 | ############################################################################### | ||
| 83 | # Updated | ||
| 84 | ############################################################################### | ||
| 85 | |||
| 86 | =head2 VCS::LibCVS::Client::Response::Updated | ||
| 87 | |||
| 88 | "PathName" "Entry" "FileMode" "FileContents" | ||
| 89 | |||
| 90 | =cut | ||
| 91 | |||
| 92 | package VCS::LibCVS::Client::Response::Updated; | ||
| 93 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 94 | 1 | @ISA =("VCS::LibCVS::Client::Response::FileUpdatingResponse"); | |
| 95 | 1 | ▶ | sub BEGIN { push @VCS::LibCVS::Client::Response::Valid_responses, "Updated"; } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 96 | 0 | ▶ | sub included_data { return ("PathName", "Entry", "FileMode", "FileContents"); } |
|
Subroutine
included_data: not called CC=1 SCAR=6.9
| |||
| 97 | |||
| 98 | ############################################################################### | ||
| 99 | # Created | ||
| 100 | ############################################################################### | ||
| 101 | |||
| 102 | =head2 VCS::LibCVS::Client::Response::Created | ||
| 103 | |||
| 104 | "PathName" "Entry" "FileMode" "FileContents" | ||
| 105 | |||
| 106 | =cut | ||
| 107 | |||
| 108 | package VCS::LibCVS::Client::Response::Created; | ||
| 109 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 110 | 1 | @ISA =("VCS::LibCVS::Client::Response::FileUpdatingResponse"); | |
| 111 | 1 | ▶ | sub BEGIN { push @VCS::LibCVS::Client::Response::Valid_responses, "Created"; } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 112 | 0 | ▶ | sub included_data { return ("PathName", "Entry", "FileMode", "FileContents"); } |
|
Subroutine
included_data: not called CC=1 SCAR=6.9
| |||
| 113 | |||
| 114 | ############################################################################### | ||
| 115 | # Update-existing | ||
| 116 | ############################################################################### | ||
| 117 | |||
| 118 | =head2 VCS::LibCVS::Client::Response::Update_existing | ||
| 119 | |||
| 120 | "PathName" "Entry" "FileMode" "FileContents" | ||
| 121 | |||
| 122 | =cut | ||
| 123 | |||
| 124 | package VCS::LibCVS::Client::Response::Update_existing; | ||
| 125 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 126 | 1 | @ISA =("VCS::LibCVS::Client::Response::FileUpdatingResponse"); | |
| 127 | 1 | ▶ | sub BEGIN { push @VCS::LibCVS::Client::Response::Valid_responses, "Update-existing"; } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 128 | 0 | ▶ | sub included_data { return ("PathName", "Entry", "FileMode", "FileContents"); } |
|
Subroutine
included_data: not called CC=1 SCAR=6.9
| |||
| 129 | |||
| 130 | ############################################################################### | ||
| 131 | # Merged | ||
| 132 | ############################################################################### | ||
| 133 | |||
| 134 | =head2 VCS::LibCVS::Client::Response::Merged | ||
| 135 | |||
| 136 | "PathName" "Entry" "FileMode" "FileContents" | ||
| 137 | |||
| 138 | =cut | ||
| 139 | |||
| 140 | package VCS::LibCVS::Client::Response::Merged; | ||
| 141 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 142 | 1 | @ISA =("VCS::LibCVS::Client::Response::FileUpdatingResponse"); | |
| 143 | 1 | ▶ | sub BEGIN { push @VCS::LibCVS::Client::Response::Valid_responses, "Merged"; } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 144 | 0 | ▶ | sub included_data { return ("PathName", "Entry", "FileMode", "FileContents"); } |
|
Subroutine
included_data: not called CC=1 SCAR=6.9
| |||
| 145 | |||
| 146 | ############################################################################### | ||
| 147 | # Patched | ||
| 148 | ############################################################################### | ||
| 149 | |||
| 150 | =head2 VCS::LibCVS::Client::Response::Patched | ||
| 151 | |||
| 152 | "PathName" "Entry" "FileMode" "FileContents" | ||
| 153 | |||
| 154 | =cut | ||
| 155 | |||
| 156 | package VCS::LibCVS::Client::Response::Patched; | ||
| 157 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 158 | 1 | @ISA =("VCS::LibCVS::Client::Response::FileUpdatingResponse"); | |
| 159 | 1 | ▶ | sub BEGIN { push @VCS::LibCVS::Client::Response::Valid_responses, "Patched"; } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 160 | 0 | ▶ | sub included_data { return ("PathName", "Entry", "FileMode", "FileContents"); } |
|
Subroutine
included_data: not called CC=1 SCAR=6.9
| |||
| 161 | |||
| 162 | ############################################################################### | ||
| 163 | # Removed | ||
| 164 | ############################################################################### | ||
| 165 | |||
| 166 | =head2 VCS::LibCVS::Client::Response::Removed | ||
| 167 | |||
| 168 | "PathName" | ||
| 169 | |||
| 170 | =cut | ||
| 171 | |||
| 172 | package VCS::LibCVS::Client::Response::Removed; | ||
| 173 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 174 | 1 | @ISA =("VCS::LibCVS::Client::Response::FileUpdatingResponse"); | |
| 175 | 1 | ▶ | sub BEGIN { push @VCS::LibCVS::Client::Response::Valid_responses, "Removed"; } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 176 | 0 | ▶ | sub included_data { return ("PathName"); } |
|
Subroutine
included_data: not called CC=1 SCAR=6.9
| |||
| 177 | |||
| 178 | ############################################################################### | ||
| 179 | # Remove-entry | ||
| 180 | ############################################################################### | ||
| 181 | |||
| 182 | =head2 VCS::LibCVS::Client::Response::Remove_entry | ||
| 183 | |||
| 184 | "PathName" | ||
| 185 | |||
| 186 | =cut | ||
| 187 | |||
| 188 | package VCS::LibCVS::Client::Response::Remove_entry; | ||
| 189 | 1 | ▶ | use vars ('@ISA'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 190 | 1 | @ISA =("VCS::LibCVS::Client::Response::FileUpdatingResponse"); | |
| 191 | 1 | ▶ | sub BEGIN { push @VCS::LibCVS::Client::Response::Valid_responses, "Remove-entry"; } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 192 | 0 | ▶ | sub included_data { return ("PathName"); } |
|
Subroutine
included_data: not called CC=1 SCAR=6.9
| |||
| 193 | |||
| 194 | =head1 SEE ALSO | ||
| 195 | |||
| 196 | VCS::LibCVS::Client | ||
| 197 | VCS::LibCVS::Client::Response | ||
| 198 | |||
| 199 | =cut | ||
| 200 | |||
| 201 | 1 | 1; | |