Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Checks that code is committed to svn, stops if not. [Alt.:  Could do svn 'add',  'commit' on the user's behalf.]

Creates or updates metadata in Synapse, including code version.

returns

 nothing

loadEntity(codeId, localPath

...

)

parameters

 codeId: id of metadata object in Synapse

localPath:  directory on machine which is running the R session

repoSync: 

side effects

Checks that Version in Code object is up-to-date with repository, and revises the Code object if not.

Checks that local files are in sync with repository, and throws exception if not. [Alt:  Could do svn 'checkout' or 'update' on user's behalf.]

Get current Step.

Gets code version, adds codeId and version into Step.

'sources' code into memory

returns

Code object

deleteEntity(codeId)

parameters

...

Delete from the code repository. [Alt: Print out delete command that user should execute.]

returns

Nothing.

TODO: What if not all steps are successful?
TODO: Should we delete from the local disk? From the R session?

...