Skip to content
Snippets Groups Projects
Commit 5c5526c0 authored by Jim MacArthur's avatar Jim MacArthur Committed by Martin Blanchard
Browse files

_casbaseddirectory.py: add _save() function.

parent 0a57c153
No related branches found
No related tags found
Loading
......@@ -561,3 +561,14 @@ class CasBasedDirectory(Directory):
throw an exception. """
raise VirtualDirectoryError("_get_underlying_directory was called on a CAS-backed directory," +
" which has no underlying directory.")
def _save(self, name):
"""Saves this directory into the content cache as a named ref. Used
by remote execution to make references for source directories so they
can be pushed to a remote artifact server.
"""
self._recalculate_recursing_up()
self._recalculate_recursing_down()
self.cas_cache.set_ref(name, self.ref)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment