# HG changeset patch # User Jeff Hammel # Date 1321395891 28800 # Node ID 6e978ddf513519a4298c4860a861718db2b1e75f # Parent 0facc5466dbee67cf1993c5acc0d682065bba1b7 self._export vs self.export, the function diff -r 0facc5466dbe -r 6e978ddf5135 fetch.py --- a/fetch.py Tue Nov 15 14:06:02 2011 -0800 +++ b/fetch.py Tue Nov 15 14:24:51 2011 -0800 @@ -118,24 +118,24 @@ class VCSFetcher(Fetcher): - command = None - - def call(*args, **kwargs): - assert command is not None, "Abstract base class" - call([self.command] + list(args), **kwargs) + command = None # name of the VCS command (currently unused) def __init__(self, url, export=True): """ - export : whether to strip the versioning information """ Fetcher.__init__(self, url) - self.export = export + self._export = export self.prog = self.type # name of app program self.vcs_dir = '.' + self.type # subdirectory for version control + def call(*args, **kwargs): + assert command is not None, "Abstract base class" + call([self.command] + list(args), **kwargs) + def __call__(self, dest): - if self.subpath or self.export: + if self.subpath or self._export: # can only export with a subpath self.export(dest, subpath=self.subpath) return