Mercurial > hg-stable
changeset 15411:afc02adf4ded
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 03 Nov 2011 12:58:30 -0500 |
parents | 9e99d2bbb1b1 (current diff) db8b0ee74025 (diff) |
children | 59fe460bb0f0 c41055249725 |
files | |
diffstat | 4 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Wed Nov 02 01:17:11 2011 -0400 +++ b/hgext/largefiles/lfutil.py Thu Nov 03 12:58:30 2011 -0500 @@ -110,7 +110,9 @@ repo.ui.note(_('Found %s in store\n') % hash) elif inusercache(repo.ui, hash): repo.ui.note(_('Found %s in system cache\n') % hash) - link(usercachepath(repo.ui, hash), storepath(repo, hash)) + path = storepath(repo, hash) + util.makedirs(os.path.dirname(path)) + link(usercachepath(repo.ui, hash), path) else: return None return storepath(repo, hash)
--- a/mercurial/ignore.py Wed Nov 02 01:17:11 2011 -0400 +++ b/mercurial/ignore.py Thu Nov 03 12:58:30 2011 -0500 @@ -78,6 +78,7 @@ pats[f] = [] fp = open(f) pats[f], warnings = ignorepats(fp) + fp.close() for warning in warnings: warn("%s: %s\n" % (f, warning)) except IOError, inst: