Mercurial > hg
changeset 1655:7bfd4724932a
convert-repo: automatically create empty map file
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 29 Jan 2006 17:22:03 +1300 |
parents | b7fc961507db |
children | 14d73fff4c45 |
files | contrib/convert-repo |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/convert-repo Sun Jan 29 17:12:31 2006 +1300 +++ b/contrib/convert-repo Sun Jan 29 17:22:03 2006 +1300 @@ -171,9 +171,12 @@ self.commitcache = {} self.map = {} - for l in file(self.mapfile): - sv, dv = l[:-1].split() - self.map[sv] = dv + try: + for l in file(self.mapfile): + sv, dv = l[:-1].split() + self.map[sv] = dv + except IOError: + pass def walktree(self, heads): visit = heads