Mercurial > hg-stable
changeset 6890:fddef0602859
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).
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 13 Aug 2008 20:18:41 -0500 |
parents | c0bd7d8b69ef |
children | 22cb82433842 |
files | mercurial/store.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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):