Changeset 896 in tailor
- Timestamp:
- 10/12/05 22:51:23 (8 years ago)
- Hash name:
- 20051012205123-97f81-523076b116f7f95ae7544655f4b49907ccee073c
- Location:
- vcpx/tests
- Files:
-
- 14 added
- 1 edited
-
cvs.py (modified) (12 diffs)
-
data/cvs-add_del_add_again_test.log (added)
-
data/cvs-branches_test.log (added)
-
data/cvs-collapse_test.log (added)
-
data/cvs-created_in_branch_test.log (added)
-
data/cvs-deleted_test.log (added)
-
data/cvs-description_test.log (added)
-
data/cvs-double_dead_test.log (added)
-
data/cvs-double_test.log (added)
-
data/cvs-encoding_test.log (added)
-
data/cvs-entry_names_test.log (added)
-
data/cvs-longlog_test.log (added)
-
data/cvs-multi_module_test.log (added)
-
data/cvs-repospath_test.log (added)
-
data/cvs-simple_test.log (added)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/tests/cvs.py
r882 r896 44 44 """Ensure the cvs log parser does its job""" 45 45 46 SIMPLE_TEST = u"""\ 47 cvs rlog: Logging docutils 48 49 RCS file: /cvsroot/docutils/docutils/THANKS.txt,v 50 head: 1.2 51 branch: 52 locks: strict 53 access list: 54 symbolic names: 55 keyword substitution: kv 56 total revisions: 2; selected revisions: 2 57 description: 58 ---------------------------- 59 revision 1.2 60 date: 2004/06/10 02:17:20; author: goodger; state: Exp; lines: +3 -2 61 *** empty log message *** 62 ---------------------------- 63 revision 1.1 64 date: 2004/06/03 13:50:58; author: goodger; state: Exp; 65 Added to project (exctracted from HISTORY.txt) 66 ============================================================================= 67 """ 46 def getCvsLog(self, testname): 47 from codecs import open 48 from os.path import join, split 49 50 logname = join(split(__file__)[0], 'data', testname)+'.log' 51 return open(logname, 'r', 'utf-8') 68 52 69 53 def testBasicBehaviour(self): 70 54 """Verify basic cvs log parser behaviour""" 71 55 72 log = StringIO(self.SIMPLE_TEST)56 log = self.getCvsLog('cvs-simple_test') 73 57 csets = changesets_from_cvslog(log, 'docutils') 74 58 … … 94 78 self.assertEqual(entry.action_kind, entry.UPDATED) 95 79 96 DOUBLE_TEST = u"""\97 cvs rlog: Logging docutils/docutils98 99 RCS file: /cvsroot/docutils/docutils/docutils/statemachine.py,v100 head: 1.16101 branch:102 locks: strict103 access list:104 symbolic names:105 nesting: 1.15.0.2106 start: 1.1.1.1107 goodger: 1.1.1108 keyword substitution: kv109 total revisions: 17; selected revisions: 1110 description:111 ----------------------------112 revision 1.16113 date: 2004/06/17 21:46:50; author: goodger; state: Exp; lines: +6 -2114 support for CSV directive implementation115 =============================================================================116 117 RCS file: /cvsroot/docutils/docutils/docutils/utils.py,v118 head: 1.35119 branch:120 locks: strict121 access list:122 symbolic names:123 nesting: 1.29.0.2124 start: 1.1.1.1125 goodger: 1.1.1126 keyword substitution: kv127 total revisions: 36; selected revisions: 5128 description:129 ----------------------------130 revision 1.35131 date: 2004/06/20 16:03:17; author: felixwiemann; state: Exp; lines: +12 -6132 make warning_stream work133 ----------------------------134 revision 1.34135 date: 2004/06/17 21:46:50; author: goodger; state: Exp; lines: +5 -2136 support for CSV directive implementation137 ----------------------------138 revision 1.33139 date: 2004/06/17 02:51:31; author: goodger; state: Exp; lines: +4 -2140 docstrings141 ----------------------------142 revision 1.32143 date: 2004/06/17 02:08:48; author: goodger; state: Exp; lines: +4 -2144 docstrings145 ----------------------------146 revision 1.31147 date: 2004/04/27 19:51:07; author: goodger; state: Exp; lines: +5 -3148 updated149 =============================================================================150 """151 152 80 def testGroupingCapability(self): 153 81 """Verify cvs log parser grouping capability""" 154 82 155 log = StringIO(self.DOUBLE_TEST)83 log = self.getCvsLog('cvs-double_test') 156 84 csets = changesets_from_cvslog(log, 'docutils') 157 85 … … 188 116 self.assertEqual(cset.date, datetime(2004, 6, 20, 16, 3, 17)) 189 117 190 DELETED_TEST = u"""\191 cvs rlog: Logging docutils192 193 RCS file: /cvsroot/docutils/docutils/Attic/THANKS.txt,v194 head: 1.2195 branch:196 locks: strict197 access list:198 symbolic names:199 keyword substitution: kv200 total revisions: 2; selected revisions: 2201 description:202 ----------------------------203 revision 1.2204 date: 2004/06/10 02:17:20; author: goodger; state: dead; lines: +3 -2205 updated206 ----------------------------207 revision 1.1208 date: 2004/06/03 13:50:58; author: goodger; state: Exp;209 Added to project (exctracted from HISTORY.txt)210 =============================================================================211 """212 213 118 def testDeletedEntry(self): 214 119 """Verify recognition of deleted entries in the cvs log""" 215 120 216 log = StringIO(self.DELETED_TEST)121 log = self.getCvsLog('cvs-deleted_test') 217 122 csets = changesets_from_cvslog(log, 'docutils') 218 123 … … 228 133 self.assertEqual(entry.action_kind, entry.DELETED) 229 134 230 COLLAPSE_TEST = u"""\231 cvs rlog: Logging PyObjC/Doc232 233 RCS file: /usr/local/CVSROOT/PyObjC/Doc/libObjCStreams.tex,v234 head: 1.4235 branch:236 locks: strict237 access list:238 keyword substitution: kv239 total revisions: 4; selected revisions: 4240 description:241 ----------------------------242 revision 1.4243 date: 1997-12-21 23:01:28; author: lele; state: Exp; lines: +2 -8244 Fake changelog 1245 ----------------------------246 revision 1.3247 date: 1996-10-18 13:48:36; author: lele; state: Exp; lines: +10 -3248 Fake changelog 2249 ----------------------------250 revision 1.2251 date: 1996-10-14 13:56:50; author: lele; state: Exp; lines: +11 -19252 Fake changelog 3253 ----------------------------254 revision 1.1255 date: 1996-10-07 18:32:11; author: lele; state: Exp;256 Fake changelog 4257 =============================================================================258 259 RCS file: /usr/local/CVSROOT/PyObjC/Doc/libPyObjC.tex,v260 head: 1.4261 branch:262 locks: strict263 access list:264 keyword substitution: kv265 total revisions: 4; selected revisions: 4266 description:267 ----------------------------268 revision 1.4269 date: 1997-12-21 23:01:29; author: lele; state: Exp; lines: +2 -8270 Fake changelog 1271 ----------------------------272 revision 1.3273 date: 1996-10-18 13:48:45; author: lele; state: Exp; lines: +7 -2274 Fake changelog 2275 ----------------------------276 revision 1.2277 date: 1996-10-18 12:36:04; author: lele; state: Exp; lines: +7 -3278 Fake changelog 3279 ----------------------------280 revision 1.1281 date: 1996-10-07 18:32:12; author: lele; state: Exp;282 Fake changelog 4283 =============================================================================284 """285 286 135 def testCollapsedChangeset(self): 287 136 """Verify the mechanism used to collapse related changesets""" 288 137 289 log = StringIO(self.COLLAPSE_TEST)138 log = self.getCvsLog('cvs-collapse_test') 290 139 csets = changesets_from_cvslog(log, 'PyObjC') 291 140 … … 312 161 self.assertEqual(cset.date, datetime(1996, 10, 18, 13, 48, 45)) 313 162 314 BRANCHES_TEST = u"""\315 cvs rlog: Logging Archetypes/tests316 317 RCS file: /cvsroot/archetypes/Archetypes/tests/test_classgen.py,v318 head: 1.18319 branch:320 locks: strict321 access list:322 keyword substitution: kv323 total revisions: 34; selected revisions: 3324 description:325 ----------------------------326 revision 1.18.14.5327 date: 2004/06/17 19:08:43; author: tiran; state: Exp; lines: +1 -0328 new test for setFormat/setContentType, content_type as computed attribute329 ----------------------------330 revision 1.18.14.4331 date: 2004/05/24 11:20:57; author: tiran; state: Exp; lines: +11 -1332 Merge from tiran-seperate_mtr-branch333 ----------------------------334 revision 1.18.14.3335 date: 2004/05/21 18:08:46; author: tiran; state: Exp; lines: +1 -3336 branches: 1.18.14.3.2;337 Fixed deepcopy problem in validations338 =============================================================================339 """340 341 163 def testBranchesInLog(self): 342 164 """Verify the parser groks with the branches info on revision""" 343 165 344 log = StringIO(self.BRANCHES_TEST)166 log = self.getCvsLog('cvs-branches_test') 345 167 csets = changesets_from_cvslog(log, 'Archetypes') 346 168 … … 349 171 cset = csets[0] 350 172 self.assertEqual(cset.log,"Fixed deepcopy problem in validations") 351 352 REPOSPATH_TEST = u"""\353 cvs rlog: Logging Zope/spurious/dummy/dir354 cvs rlog: Logging Zope/lib/python/DateTime355 cvs rlog: warning: no revision `Zope-2_7-branch' in `/cvs-repository/Packages/DateTime/Attic/DateTime.html,v'356 357 RCS file: /cvs-repository/Packages/DateTime/Attic/DateTime.py,v358 head: 1.100359 branch:360 locks: strict361 access list:362 keyword substitution: kv363 total revisions: 170; selected revisions: 1364 description:365 ----------------------------366 revision 1.85.12.11367 date: 2004/08/02 09:49:18; author: andreasjung; state: Exp; lines: +22 -2368 backported copy constructor from trunk369 =============================================================================370 """371 173 372 174 def testReposPath(self): 373 175 """Verify the parser is right in determine working copy file paths""" 374 176 375 log = StringIO(self.REPOSPATH_TEST)177 log = self.getCvsLog('cvs-repospath_test') 376 178 csets = changesets_from_cvslog(log, 'Zope') 377 179 … … 384 186 self.assertEqual(entry.name, 'lib/python/DateTime/DateTime.py') 385 187 386 LONGLOG_TEST = u"""\387 cvs rlog: Logging ATContentTypes388 389 RCS file: /cvsroot/collective/ATContentTypes/Attic/ConstrainTypesMixin.py,v390 head: 1.1391 branch:392 locks: strict393 access list:394 keyword substitution: kv395 total revisions: 5; selected revisions: 1396 description:397 ----------------------------398 revision 1.1399 date: 2004/08/11 01:09:46; author: rochael; state: dead;400 branches: 1.1.2;401 file ConstrainTypesMixin.py was initially added on branch jensens-restrain_mixin-branch.402 =============================================================================403 404 RCS file: /cvsroot/collective/ATContentTypes/customconfig.py.example,v405 head: 1.7406 branch:407 locks: strict408 access list:409 keyword substitution: kv410 total revisions: 9; selected revisions: 1411 description:412 ----------------------------413 revision 1.7414 date: 2004/08/13 13:59:55; author: rochael; state: Exp; lines: +1 -5415 removed duplicated ENABLE_TEMPLATE_MIXIN416 =============================================================================417 cvs rlog: Logging ATContentTypes/Extensions418 419 RCS file: /cvsroot/collective/ATContentTypes/Extensions/batchCreate.py,v420 head: 1.2421 branch:422 locks: strict423 access list:424 keyword substitution: kv425 total revisions: 3; selected revisions: 1426 description:427 ----------------------------428 revision 1.2429 date: 2004/08/09 07:44:05; author: tiran; state: Exp; lines: +4 -1430 branches: 1.2.2;431 Recoded migration walkers to use a generator instead returning a list to make them much more memory efficient.432 433 Rewritten folder migration to use the depth inside the folder structur instead of recursing into the full side.434 435 Added a findStaledObjects external method to ATCT to find staled objects. It is very useful to clean up a site before running the migration.436 =============================================================================437 438 RCS file: /cvsroot/collective/ATContentTypes/Extensions/findStaledObjects.py,v439 head: 1.1440 branch:441 locks: strict442 access list:443 keyword substitution: kv444 total revisions: 2; selected revisions: 1445 description:446 ----------------------------447 revision 1.1448 date: 2004/08/09 07:44:05; author: tiran; state: Exp;449 branches: 1.1.2;450 Recoded migration walkers to use a generator instead returning a list to make them much more memory efficient.451 452 Rewritten folder migration to use the depth inside the folder structur instead of recursing into the full side.453 454 Added a findStaledObjects external method to ATCT to find staled objects. It is very useful to clean up a site before running the migration.455 =============================================================================456 cvs rlog: Logging ATContentTypes/debian457 cvs rlog: Logging ATContentTypes/docs458 459 RCS file: /cvsroot/collective/ATContentTypes/docs/ExtendingType.txt,v460 head: 1.1461 branch:462 locks: strict463 access list:464 keyword substitution: kv465 total revisions: 2; selected revisions: 1466 description:467 ----------------------------468 revision 1.1469 date: 2004/08/06 20:13:30; author: tiran; state: Exp;470 branches: 1.1.2;471 Added ExtendingType472 =============================================================================473 474 RCS file: /cvsroot/collective/ATContentTypes/docs/HISTORY.txt,v475 head: 1.42476 branch:477 locks: strict478 access list:479 keyword substitution: kv480 total revisions: 44; selected revisions: 1481 description:482 ----------------------------483 revision 1.42484 date: 2004/08/09 07:44:07; author: tiran; state: Exp; lines: +12 -0485 Recoded migration walkers to use a generator instead returning a list to make them much more memory efficient.486 487 Rewritten folder migration to use the depth inside the folder structur instead of recursing into the full side.488 489 Added a findStaledObjects external method to ATCT to find staled objects. It is very useful to clean up a site before running the migration.490 =============================================================================491 cvs rlog: Logging ATContentTypes/i18n492 cvs rlog: Logging ATContentTypes/interfaces493 494 RCS file: /cvsroot/collective/ATContentTypes/interfaces/Attic/IConstrainTypes.py,v495 head: 1.1496 branch:497 locks: strict498 access list:499 keyword substitution: kv500 total revisions: 2; selected revisions: 1501 description:502 ----------------------------503 revision 1.1504 date: 2004/08/11 01:09:47; author: rochael; state: dead;505 branches: 1.1.2;506 file IConstrainTypes.py was initially added on branch jensens-restrain_mixin-branch.507 =============================================================================508 cvs rlog: Logging ATContentTypes/migration509 510 RCS file: /cvsroot/collective/ATContentTypes/migration/ATCTMigrator.py,v511 head: 1.12512 branch:513 locks: strict514 access list:515 keyword substitution: kv516 total revisions: 14; selected revisions: 1517 description:518 ----------------------------519 revision 1.12520 date: 2004/08/09 07:44:09; author: tiran; state: Exp; lines: +42 -32521 Recoded migration walkers to use a generator instead returning a list to make them much more memory efficient.522 523 Rewritten folder migration to use the depth inside the folder structur instead of recursing into the full side.524 525 Added a findStaledObjects external method to ATCT to find staled objects. It is very useful to clean up a site before running the migration.526 =============================================================================527 528 RCS file: /cvsroot/collective/ATContentTypes/migration/CPTMigrator.py,v529 head: 1.8530 branch:531 locks: strict532 access list:533 keyword substitution: kv534 total revisions: 9; selected revisions: 1535 description:536 ----------------------------537 revision 1.8538 date: 2004/08/09 07:44:09; author: tiran; state: Exp; lines: +38 -31539 Recoded migration walkers to use a generator instead returning a list to make them much more memory efficient.540 541 Rewritten folder migration to use the depth inside the folder structur instead of recursing into the full side.542 543 Added a findStaledObjects external method to ATCT to find staled objects. It is very useful to clean up a site before running the migration.544 =============================================================================545 546 RCS file: /cvsroot/collective/ATContentTypes/migration/Walker.py,v547 head: 1.15548 branch:549 locks: strict550 access list:551 keyword substitution: kv552 total revisions: 17; selected revisions: 1553 description:554 ----------------------------555 revision 1.15556 date: 2004/08/09 07:44:09; author: tiran; state: Exp; lines: +76 -30557 Recoded migration walkers to use a generator instead returning a list to make them much more memory efficient.558 559 Rewritten folder migration to use the depth inside the folder structur instead of recursing into the full side.560 561 Added a findStaledObjects external method to ATCT to find staled objects. It is very useful to clean up a site before running the migration.562 =============================================================================563 cvs rlog: Logging ATContentTypes/skins564 cvs rlog: Logging ATContentTypes/skins/ATContentTypes565 566 RCS file: /cvsroot/collective/ATContentTypes/skins/ATContentTypes/atct_history.pt,v567 head: 1.5568 branch:569 locks: strict570 access list:571 keyword substitution: kv572 total revisions: 7; selected revisions: 1573 description:574 ----------------------------575 revision 1.5576 date: 2004/08/13 13:21:53; author: tiran; state: Exp; lines: +1 -2577 Somehow I mixed up two sentences578 =============================================================================579 cvs rlog: Logging ATContentTypes/tests580 581 RCS file: /cvsroot/collective/ATContentTypes/tests/Attic/testContrainTypes.py,v582 head: 1.1583 branch:584 locks: strict585 access list:586 keyword substitution: kv587 total revisions: 4; selected revisions: 1588 description:589 ----------------------------590 revision 1.1591 date: 2004/08/11 01:13:43; author: rochael; state: dead;592 branches: 1.1.2;593 file testContrainTypes.py was initially added on branch jensens-restrain_mixin-branch.594 =============================================================================595 cvs rlog: Logging ATContentTypes/types596 597 RCS file: /cvsroot/collective/ATContentTypes/types/ATContentType.py,v598 head: 1.36599 branch:600 locks: strict601 access list:602 keyword substitution: kv603 total revisions: 38; selected revisions: 1604 description:605 ----------------------------606 revision 1.36607 date: 2004/08/13 13:15:46; author: tiran; state: Exp; lines: +2 -2608 Fixed typo609 =============================================================================610 611 RCS file: /cvsroot/collective/ATContentTypes/types/schemata.py,v612 head: 1.45613 branch:614 locks: strict615 access list:616 keyword substitution: kv617 total revisions: 49; selected revisions: 1618 description:619 ----------------------------620 revision 1.45621 date: 2004/08/13 13:21:24; author: tiran; state: Exp; lines: +24 -24622 Something went wrong ...623 =============================================================================624 cvs rlog: Logging ATContentTypes/types/criteria625 """626 627 188 def testLongLog(self): 628 189 """Stress the parser with a very long changelog""" 629 190 630 log = StringIO(self.LONGLOG_TEST)191 log = self.getCvsLog('cvs-longlog_test') 631 192 csets = changesets_from_cvslog(log, 'ATContentTypes') 632 193 … … 692 253 changesets_from_cvslog, log, 'docutils') 693 254 694 CREATED_IN_BRANCH_TEST = u"""\695 cvs rlog: Logging dsssl-utils/bigdiesel/src696 697 RCS file: /cvsroot/dsssl-utils/dsssl-utils/bigdiesel/src/tokenizer-rgc-test.scm,v698 head: 1.2699 branch:700 locks: strict701 access list:702 keyword substitution: kv703 total revisions: 3; selected revisions: 2704 description:705 ----------------------------706 revision 1.2707 date: 2002/07/30 12:38:24; author: ydirson; state: Exp; lines: +36 -0708 merged until bigloo-parser_trunk-merge_2: new tokenizer, basic attributes support709 ----------------------------710 revision 1.1711 date: 2002/07/27 16:28:23; author: ydirson; state: dead;712 branches: 1.1.2;713 file tokenizer-rgc-test.scm was initially added on branch bigloo-parser.714 =============================================================================715 """716 717 255 def testInitialCreationOnBranchBehaviour(self): 718 256 """Verify cvs log parser skip spurious entries""" 719 257 720 log = StringIO(self.CREATED_IN_BRANCH_TEST)258 log = self.getCvsLog('cvs-created_in_branch_test') 721 259 csets = changesets_from_cvslog(log, 'dsssl-utils') 722 260 723 261 self.assertEqual(len(csets), 1) 724 725 DESCRIPTION_TEST = u"""\726 cvs rlog: Logging Zope727 728 RCS file: /cvs-repository/Packages/ZServer/Attic/start_medusa.py,v729 head: 1.3730 branch:731 locks: strict732 access list:733 keyword substitution: kv734 total revisions: 3; selected revisions: 0735 description:736 =============================================================================737 cvs rlog: warning: no revision `Zope-2_7-branch' in `/cvs-repository/Packages/ZServer/Attic/zinit.py,v'738 739 RCS file: /cvs-repository/Packages/ZServer/Attic/zinit.py,v740 head: 1.5741 branch:742 locks: strict743 access list:744 keyword substitution: kv745 total revisions: 5; selected revisions: 0746 description:747 Persistent server script748 =============================================================================749 cvs rlog: warning: no revision `Zope-2_7-branch' in `/cvs-repository/Packages/ZServer/Attic/zope_handler.py,v'750 """751 262 752 263 def testDescriptionPresent(self): 753 264 """Verify cvs log parser handle eventual description""" 754 265 755 log = StringIO(self.DESCRIPTION_TEST)266 log = self.getCvsLog('cvs-description_test') 756 267 csets = changesets_from_cvslog(log, 'zope') 757 758 ADD_DEL_ADD_AGAIN_TEST = u"""\759 cvs rlog: Logging test760 761 RCS file: /tmp/t/test-repo/test/file,v762 head: 1.6763 branch:764 locks: strict765 access list:766 keyword substitution: kv767 total revisions: 6; selected revisions: 6768 description:769 ----------------------------770 revision 1.6771 date: 2004-07-27 19:26:13 +0000; author: mdlavin; state: Exp; lines: +2 -1772 *** empty log message ***773 ----------------------------774 revision 1.5775 date: 2004-03-31 21:56:41 +0000; author: mdlavin; state: Exp; lines: +1 -2776 Remove generated header files from CVS777 ----------------------------778 revision 1.4779 date: 2004-03-31 21:51:08 +0000; author: mdlavin; state: Exp; lines: +2 -1780 *** empty log message ***781 ----------------------------782 revision 1.3783 date: 2004-03-23 19:24:21 +0000; author: mdlavin; state: Exp; lines: +1 -1784 *** empty log message ***785 ----------------------------786 revision 1.2787 date: 2004-03-23 19:22:13 +0000; author: mdlavin; state: dead; lines: +0 -0788 *** empty log message ***789 ----------------------------790 revision 1.1791 date: 2004-03-23 19:20:02 +0000; author: mdlavin; state: Exp;792 *** empty log message ***793 =============================================================================794 """795 268 796 269 def testAddDelAddAgain(self): 797 270 """Verify add->delete->add/modify->modify CVS case""" 798 271 799 log = StringIO(self.ADD_DEL_ADD_AGAIN_TEST)272 log = self.getCvsLog('cvs-add_del_add_again_test') 800 273 csets = changesets_from_cvslog(log, 'test') 801 274 … … 820 293 self.assertEqual(entry.action_kind, entry.ADDED) 821 294 822 MULTI_MODULE_TEST = u"""\823 cvs rlog: Logging apache-1.3/src/test/vhtest/logs824 825 RCS file: /home/cvspublic/apache-1.3/src/test/vhtest/logs/.cvsignore,v826 head: 1.1827 branch:828 locks: strict829 access list:830 keyword substitution: kv831 total revisions: 1; selected revisions: 1832 description:833 ----------------------------834 revision 1.1835 date: 1998/02/08 22:50:19; author: dgaudet; state: Exp;836 tweak tweak, docs were slightly wrong837 =============================================================================838 cvs rlog: Logging httpd-docs-1.3/htdocs839 840 RCS file: /home/cvspublic/httpd-docs-1.3/htdocs/Attic/.cvsignore,v841 head: 1.2842 branch:843 locks: strict844 access list:845 keyword substitution: kv846 total revisions: 2; selected revisions: 2847 description:848 ----------------------------849 revision 1.2850 date: 1999/08/28 01:11:49; author: fielding; state: dead; lines: +0 -0851 Don't ignore everything when everything isn't supposed to be ignored.852 If this bugs configure users, then fix configure so that it uses a853 distinctive prefix that won't match Makefile.tmpl.854 855 Submitted by: Roy Fielding, Sander van Zoest856 ----------------------------857 revision 1.1858 date: 1997/12/21 00:22:00; author: dgaudet; state: Exp;859 I'm tired of cvs complaining about all my debugging files. We're not likely860 to be changing this directory much, so ignore any non-cvs files in it.861 """862 863 295 def testModules(self): 864 296 """Verify the parser correctly handle multimodules""" 865 297 866 log = StringIO(self.MULTI_MODULE_TEST)298 log = self.getCvsLog('cvs-multi_module_test') 867 299 csets = changesets_from_cvslog(log, 'apache-1.3') 868 869 ENTRY_NAMES_TEST = u"""870 cvs rlog: Logging Products/PluggableAuthService871 872 RCS file: /cvs-repository/Products/PluggableAuthService/COPYRIGHT.txt,v873 head: 1.1874 branch:875 locks: strict876 access list:877 keyword substitution: kv878 total revisions: 1; selected revisions: 1879 description:880 ----------------------------881 revision 1.1882 date: 2004/08/12 15:15:53; author: jens; state: Exp;883 Sorry for the noise - switching to ZPL 2.1884 =============================================================================885 """886 300 887 301 def testEntryNames(self): 888 302 """Verify the parser removes module name from entries""" 889 303 890 log = StringIO(self.ENTRY_NAMES_TEST)304 log = self.getCvsLog('cvs-entry_names_test') 891 305 csets = changesets_from_cvslog(log, 'Products/PluggableAuthService') 892 306 … … 895 309 self.assertEqual(entry.name, 'COPYRIGHT.txt') 896 310 897 ENCODING_TEST = u"""898 cvs rlog: Logging pxlib/src899 900 RCS file: /cvsroot/pxlib/pxlib/src/px_head.h,v901 head: 1.8902 branch:903 locks: strict904 access list:905 keyword substitution: kv906 total revisions: 9; selected revisions: 2907 description:908 ----------------------------909 revision 1.8910 date: 2005/08/17 16:07:40; author: steinm; state: Exp; lines: +1 -0911 - added prototype for px_delete_data_from_block()912 ----------------------------913 revision 1.7914 date: 2005/08/17 05:16:24; author: steinm; state: Exp; lines: +1 -1915 new prototype for px_add_data_to_block()916 =============================================================================917 """918 311 def testUnicode(self): 919 312 """Verify cvs parser returns unicode strings""" 920 313 921 log = StringIO(self.ENCODING_TEST)314 log = self.getCvsLog('cvs-encoding_test') 922 315 csets = changesets_from_cvslog(log, 'pxlib') 923 316 … … 930 323 self.assertEqual(len(log.encode('ascii', 'ignore')), 41) 931 324 932 DOUBLE_DEAD_TEST = """\933 cvs rlog: Logging composestar/temp/ComposestarVSAddin/ComposestarVSAddin934 935 RCS file: /cvsroot/composestar/composestar/temp/ComposestarVSAddin/Attic/Ini.cs,v936 head: 1.3937 branch:938 locks: strict939 access list:940 keyword substitution: kv941 total revisions: 3; selected revisions: 3942 description:943 ----------------------------944 revision 1.3945 date: 2004/07/15 08:28:02; author: sverre_boschman; state: dead; lines: +0 -0946 *** empty log message ***947 ----------------------------948 revision 1.2949 date: 2004/07/15 08:28:02; author: sverre_boschman; state: dead; lines: +0 -0950 *** empty log message ***951 ----------------------------952 revision 1.1953 date: 2004/07/14 15:39:55; author: sverre_boschman; state: Exp;954 Backup955 =============================================================================956 957 RCS file: /cvsroot/composestar/composestar/temp/ComposestarVSAddin/ConfigManager/Attic/ConfigManager.cs,v958 head: 1.3959 branch:960 locks: strict961 access list:962 keyword substitution: kv963 total revisions: 3; selected revisions: 3964 description:965 ----------------------------966 revision 1.3967 date: 2004/07/15 08:28:03; author: sverre_boschman; state: dead; lines: +0 -0968 *** empty log message ***969 ----------------------------970 revision 1.2971 date: 2004/07/15 08:28:02; author: sverre_boschman; state: dead; lines: +0 -0972 *** empty log message ***973 ----------------------------974 revision 1.1975 date: 2004/07/14 15:39:55; author: sverre_boschman; state: Exp;976 Backup977 =============================================================================978 """979 980 325 def testDoubleDead(self): 981 326 """Verify the parser collapse multiple deletions on a single entry""" 982 327 983 log = StringIO(self.DOUBLE_DEAD_TEST)328 log = self.getCvsLog('cvs-double_dead_test') 984 329 csets = changesets_from_cvslog(log, 985 330 'composestar/temp/ComposestarVSAddin') … … 1008 353 self.assertEqual(entry.new_revision, '1.3') 1009 354 self.assertEqual(entry.action_kind, entry.DELETED) 1010
Note: See TracChangeset
for help on using the changeset viewer.
