Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: cms/sources.py

Issue 29827639: Issue 6728 - Remove dead hg revision argument (Closed)
Patch Set: Created July 11, 2018, 5:12 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cms/bin/generate_static_pages.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/sources.py
===================================================================
--- a/cms/sources.py
+++ b/cms/sources.py
@@ -355,18 +355,18 @@
try:
return memoized[args]
except KeyError:
return memoized.setdefault(args, func(*args))
wrapper.cache_clear = memoized.clear
return wrapper
-def create_source(path, cached=False, revision=None):
- """Create a source from path and optional revision.
+def create_source(path, cached=False):
+ """Create a source from path.
`cached` flag activates caching. This can be used to optimize performance
if no changes are expected on the filesystem after the source was created.
This is usually the case with static generation (as opposed to dynamic
preview).
If `settings.ini` in the source contains `[paths]` section with an
`additional-paths` key that contains the list of additional root folders,
« no previous file with comments | « cms/bin/generate_static_pages.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld