Lively Kernel canvas
null
null
null
null
//copyjustaspecificfiledir=newFileDirectory(newURL('http://livelykernel.sunlabs.com/repository/lively-kernel/trunk/source/kernel/'));dir.copyFileNamed('Tools.js',null,URL.source.getDirectory());
1
false
null
206
null
null
//deleteunwantedfilesvarx=newFileDirectory(URL.source.getDirectory());varfiles=x.filenames().select(function(ea){returnea.startsWith('.')});files.each(function(ea){x.deleteFileNamed(ea)});
3
0
false
null
207
null
null
//deletefilefile='index.xhtml'varx=newFileDirectory(URL.source.getDirectory());x.deleteFileNamed(file);
3
114
false
null
10
null
null
//copyandrenameafilex=newFileDirectory(URL.source.getDirectory());x.copyFileNamed('index.xhtml',null,URL.common.wiki,'example.xhtml');
2
0
false
null
147
null
null
//copyandrename,fromlocalhost,notwiki!//getwriteaccessinthewikifromlocalhostnewNetRequest().put(URL.common.wiki.withFilename('abc'));//copyfilefromlocalhosttowiki//(mustbeevaluatedfromlocalhost)fileName='LKWiki.js';revision=null;newName=null;x=newFileDirectory(URL.source.getDirectory());x.copyFileNamed(fileName,revision,URL.common.wiki,newName);
7
0
true
null
1
null
null
//listrevisionsofafilefile='engine.xhtml';url=URL.source.getDirectory();dir=newFileDirectory(url);res=newSVNResource(url.toString(),Record.newPlainInstance({URL:url+file,Metadata:null,HeadRevision:null}));res.fetchMetadata(true,null);timestamps=res.getMetadata();revs=timestamps.collect(function(ea){returnea.toString().match(/.*Revision(.*)/)[1]});
7
387
false
null
387
null
null
//patchandunpatchwikifilesfile='wikiScripts2.xhtml';url=newURL('http://livelykernel.sunlabs.com/repository/lively-wiki/');patcher=newWikiPatcher(url);patcher.patchFile(file,8426);
4
0
true
null
197
null
null
//unpatchafilesothatitusesthemostcurrentsourcesfile='wikiScripts2.xhtml';url=newURL('http://livelykernel.sunlabs.com/repository/lively-wiki/');patcher=newWikiPatcher(url);patcher.unpatchFile(file);
4
56
false
null
59
null
null
ThisisaTextMorph
-1.6959268963491416
8
false
null
1.695926895626644
3.980061968098949
null
//updatesourcecodefromrepositorybaseUrl=newURL('http://livelykernel.sunlabs.com/repository/lively-kernel/trunk/source/kernel/');dirs=['','Tests/','ometa/']dirs.each(function(lastPart){dir=newFileDirectory(baseUrl.withFilename(lastPart));files=dir.filenames().reject(function(ea){returnea.startsWith('index')||ea.startsWith('.')});files.each(function(ea){dir.copyFileNamed(ea,null,URL.source.getDirectory().withFilename(lastPart))});});
0
false
null
485
null
8
null
//getcontentofafileatarevisionfile='index.xhtml';dir=newFileDirectory(URL.common.wiki);content=dir.fileContent(file,8057);
3
0
false
null
25
null
null
1229465368297
373
1
16
null
1229465368
null