Skip to content

Commit

Permalink
Fix for pharo-vcs#952
Browse files Browse the repository at this point in the history
 - test adoption of unknown commit
 - add implementation of adopt to unknown commit
  • Loading branch information
guillep committed Aug 6, 2018
1 parent 1063ab2 commit 590c03c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ setUp
super setUp.

"Set a commit that is known in the remote repository but not in the local one"
self repository workingCopy referenceCommit: (self repository lookupCommit: remoteRepository headCommit id)
(self repository lookupCommit: remoteRepository headCommit id) adopt
7 changes: 7 additions & 0 deletions Iceberg.package/IceUnknownCommit.class/instance/adopt.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
API-working copy
adopt

"Low level.
For the working copy to adopt myself as reference commit"

self repository workingCopy adoptCommit: self

0 comments on commit 590c03c

Please sign in to comment.