Index: setuptools/command/egg_info.py
===================================================================
--- setuptools/command/egg_info.py	(revision 53254)
+++ setuptools/command/egg_info.py	(working copy)
@@ -224,7 +224,11 @@
                 localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]])
             elif data.startswith('<?xml'):
                 dirurl = urlre.search(data).group(1)    # get repository URL
-                localrev = max([int(m.group(1)) for m in revre.finditer(data)])
+                
+                # you get an empty list if you've just added a directory and 
+                # have not committed any files to it :
+                all_revs = [int(m.group(1)) for m in revre.finditer(data)]
+                localrev = len(all_revs) and max(all_revs) or 0
             else:
                 log.warn("unrecognized .svn/entries format; skipping %s", base)
                 dirs[:] = []
