equal
deleted
inserted
replaced
451 branches := repo branches. |
451 branches := repo branches. |
452 self assert: branches size == 1. |
452 self assert: branches size == 1. |
453 self assert: branches anElement name = 'default' |
453 self assert: branches anElement name = 'default' |
454 |
454 |
455 "Created: / 14-01-2013 / 14:08:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
455 "Created: / 14-01-2013 / 14:08:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
456 ! |
|
457 |
|
458 test_branches_issue256a |
|
459 " |
|
460 Change branch with spaces & commit. Check whether commited changeset |
|
461 has the branch set. |
|
462 " |
|
463 |
|
464 | repo wc | |
|
465 |
|
466 repo := self repositoryNamed:'test_repo_01'. |
|
467 wc := repo workingCopy. |
|
468 self assert: repo branches size == 1. |
|
469 wc branch: 'test branches issue256a'. |
|
470 |
|
471 "Modify some file" |
|
472 (wc / 'f1.txt') writingFileDo:[:s | s nextPutAll:'modified...' ]. |
|
473 wc commit: testSelector , ' - commit 01'. |
|
474 |
|
475 self assert: wc changeset branches size == 1. |
|
476 self assert: wc changeset branches anElement name = 'test branches issue256a'. |
|
477 self assert: repo branches size == 2. |
|
478 self assert:(repo branches contains: [:b|b name = 'default']). |
|
479 self assert:(repo branches contains: [:b|b name = 'test branches issue256a']). |
|
480 |
|
481 "Created: / 07-01-2019 / 22:42:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
456 ! ! |
482 ! ! |
457 |
483 |
458 !HGTests methodsFor:'tests - changesets'! |
484 !HGTests methodsFor:'tests - changesets'! |
459 |
485 |
460 test_changeset_01 |
486 test_changeset_01 |