-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.9.0' into master
- Loading branch information
Showing
1,463 changed files
with
6,244 additions
and
3,190 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/FileSystem-Git.package/FileSystemGitRepository.class/instance/commitNamed..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
accessing | ||
commitNamed: hexHash | ||
| git | | ||
git := GitCurrentUnitOfWork for: repository. | ||
git := repository unitOfWork. | ||
^ self filesystemOn: (git objectNamed: hexHash) |
2 changes: 1 addition & 1 deletion
2
src/FileSystem-Git.package/FileSystemGitRepository.class/instance/head.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
accessing | ||
head | ||
^ self filesystemOn: (self unitOfWork headIfAbsent: [ nil ]) | ||
^ self filesystemOn: (repository withUnitOfWork: [repository unitOfWork headIfAbsent: [ nil ]]) |
6 changes: 0 additions & 6 deletions
6
...tem-Git.package/FileSystemGitRepository.class/instance/recursivelyCollectCommits.into..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ running | |
setUp | ||
| commit1 commit2 blob1 blob2 tree1 tree2 stamp | | ||
super setUp. | ||
stamp := GitStamp new | ||
name: 'Homer Simpson'; | ||
email: '[email protected]'; | ||
yourself. | ||
stamp := GitStamp nowBy: 'Homer Simpson' | ||
email: '[email protected]'. | ||
reference := (FileSystem memory / 'test.git'). | ||
basicRepository := GitRepository on: reference. | ||
|
||
basicRepository withUnitOfWork: [ | ||
blob1 := (GitBlob bytes: 'testBlob' in: basicRepository) store; yourself. | ||
blob2 := (GitBlob bytes: 'second test Blob' in: basicRepository) store; yourself. | ||
tree1 := GitTree | ||
|
@@ -45,10 +44,11 @@ setUp | |
parents: { commit1 hexHash }; | ||
store; | ||
yourself. | ||
basicRepository | ||
updateRef: basicRepository headsDir / 'branch1' to: commit1 hexHash; | ||
updateRef: basicRepository headsDir / 'master' to: commit2 hexHash. | ||
|
||
basicRepository unitOfWork | ||
updateRef: 'refs/heads/branch1' to: commit1 hexHash; | ||
updateRef: 'refs/heads/master' to: commit2 hexHash. | ||
GitFSCK validate: basicRepository. | ||
]. | ||
|
||
repository := FileSystemGitRepository on: reference. |
2 changes: 1 addition & 1 deletion
2
src/FileSystem-Git.package/FileSystemGitRepositoryRemoteTests.class/instance/tearDown.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
running | ||
tearDown | ||
GitFSCK validate: basicRepository. | ||
basicRepository withUnitOfWork: [GitFSCK validate: basicRepository]. | ||
super tearDown. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...leSystem-Git.package/FileSystemGitRepositoryRemoteTests.class/instance/withUnitOfWork..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
tests | ||
withUnitOfWork: aBlock | ||
^ repository withUnitOfWork: aBlock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ running | |
setUp | ||
| commit1 commit2 blob1 blob2 tree1 tree2 stamp | | ||
super setUp. | ||
stamp := GitStamp new | ||
name: 'Homer Simpson'; | ||
email: '[email protected]'; | ||
yourself. | ||
stamp := GitStamp nowBy: 'Homer Simpson' | ||
email: '[email protected]'. | ||
reference := (FileSystem memory / 'test.git'). | ||
basicRepository := GitRepository on: reference. | ||
|
||
basicRepository withUnitOfWork: [ | ||
blob1 := (GitBlob bytes: 'testBlob' in: basicRepository) store; yourself. | ||
blob2 := (GitBlob bytes: 'second test Blob' in: basicRepository) store; yourself. | ||
tree1 := GitTree | ||
|
@@ -46,9 +45,10 @@ setUp | |
store; | ||
yourself. | ||
|
||
basicRepository | ||
updateRef: basicRepository headsDir / 'branch1' to: commit1 hexHash; | ||
updateRef: basicRepository headsDir / 'master' to: commit2 hexHash. | ||
GitFSCK validate: basicRepository. | ||
basicRepository unitOfWork | ||
updateRef: 'refs/heads/branch1' to: commit1 hexHash; | ||
updateRef: 'refs/heads/master' to: commit2 hexHash. | ||
]. | ||
basicRepository withUnitOfWork: [GitFSCK validate: basicRepository]. | ||
|
||
repository := FileSystemGitRepository on: reference. |
2 changes: 1 addition & 1 deletion
2
src/FileSystem-Git.package/FileSystemGitRepositoryTests.class/instance/tearDown.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
running | ||
tearDown | ||
GitFSCK validate: basicRepository. | ||
basicRepository withUnitOfWork: [GitFSCK validate: basicRepository]. | ||
super tearDown. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
tests | ||
testFullTags | ||
| commit tags tag| | ||
commit := basicRepository objectNamed: (basicRepository resolveRef: 'refs/heads/branch1'). | ||
commit := self unitOfWork objectNamed: (self unitOfWork resolveRef: 'refs/heads/branch1'). | ||
[[ tag := GitTag | ||
named: 'version4.3alpha' | ||
for: commit | ||
|
@@ -11,7 +11,6 @@ testFullTags | |
do: [ :req | req resume: 'Homer Simpson' ]] | ||
on: GitStampEmailRequest | ||
do: [ :req | req resume: '[email protected]' ]. | ||
|
||
tags := repository tags. | ||
|
||
self assert: tags size = 1. | ||
|
2 changes: 1 addition & 1 deletion
2
src/FileSystem-Git.package/FileSystemGitRepositoryTests.class/instance/testHead.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
tests | ||
testHead | ||
| head fsOnHead | | ||
head := basicRepository objectNamed: basicRepository headRef. | ||
head := self unitOfWork objectNamed: self unitOfWork headRef. | ||
fsOnHead := repository head. | ||
self assert: fsOnHead species = GitFilesystem. | ||
self assert: head = (fsOnHead revision) |
14 changes: 7 additions & 7 deletions
14
src/FileSystem-Git.package/FileSystemGitRepositoryTests.class/instance/testLightTags.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,14 @@ testInitializeWithEverything | |
| commit tree message author committer blob | | ||
blob := GitBlob bytes: 'aBlob' in: nil. | ||
message := 'a test message'. | ||
author := (GitStamp new | ||
email: '[email protected]'; | ||
name: 'Homer Simpson'; | ||
timeStamp: TimeStamp now; | ||
yourself). | ||
committer := (GitStamp new | ||
email: '[email protected]'; | ||
name: 'Bart Simpson'; | ||
timeStamp: TimeStamp now; | ||
yourself). | ||
author := GitStamp | ||
name: 'Homer Simpson' | ||
email: '[email protected]' | ||
timeStamp: TimeStamp now. | ||
committer := GitStamp | ||
name: 'Bart Simpson' | ||
email: '[email protected]' | ||
timeStamp: TimeStamp now. | ||
tree := GitTree | ||
entries: { | ||
GitTreeEntry | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/FileSystem-Git.package/GitFeatureFlags.class/class/warnAboutUseOfDeprecatedMethods.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.