Mercurial > hg > fetch
comparison fetch.py @ 45:87c22bbcda2b
use correct function name
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 15 Nov 2011 14:30:16 -0800 |
parents | b98c8a8a881b |
children | fb05b7616bd8 |
comparison
equal
deleted
inserted
replaced
44:b98c8a8a881b | 45:87c22bbcda2b |
---|---|
149 def export(self, dest): | 149 def export(self, dest): |
150 """ | 150 """ |
151 export a clone of the directory | 151 export a clone of the directory |
152 """ | 152 """ |
153 dest = os.path.abspath(dest) | 153 dest = os.path.abspath(dest) |
154 tmpdir = tempfile.mkdtmp() | 154 tmpdir = tempfile.mkdtemp() |
155 self.clone(tmpdir) | 155 self.clone(tmpdir) |
156 path = tmpdir | 156 path = tmpdir |
157 if self.subpath: | 157 if self.subpath: |
158 path = os.path.join([tmpdir] + self.subpath) | 158 path = os.path.join([tmpdir] + self.subpath) |
159 assert os.path.exists(path), "subpath %s of %s not found" % (os.path.sep.join(self.subpath), self.url) | 159 assert os.path.exists(path), "subpath %s of %s not found" % (os.path.sep.join(self.subpath), self.url) |