# HG changeset patch # User Adrian Buehlmann # Date 1218676721 18000 # Node ID fddef0602859273c03b9cbbbb76900723179d3c3 # Parent c0bd7d8b69ef4b084b484b972e61521e5363ab15 store.py: accept empty repos Fixes a traceback on the server side when trying to streamclone an empty repo (this was *not* introduced by 80e51429cb9a). diff -r c0bd7d8b69ef -r fddef0602859 mercurial/store.py --- a/mercurial/store.py Wed Aug 13 20:18:40 2008 -0500 +++ b/mercurial/store.py Wed Aug 13 20:18:41 2008 -0500 @@ -69,6 +69,8 @@ path = os.path.join(self.path, relpath) else: path = self.path + if not os.path.isdir(path): + return striplen = len(self.path) + len(os.sep) filetypes = ('.d', '.i') for f, size in _dirwalk(path, recurse):