Mercurial > hgsubversion
changeset 1124:99c503cfcc9c
util: remove pre-1.9 mercurial code from pickle_atomic
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Thu, 22 Aug 2013 19:54:40 -0500 |
parents | 37989fbbab5c |
children | cb4dccc90ff1 |
files | hgsubversion/util.py |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -150,12 +150,7 @@ def pickle_atomic(data, file_path): """ f = hgutil.atomictempfile(file_path, 'w+b', 0644) pickle.dump(data, f) - # Older versions of hg have .rename() instead of .close on - # atomictempfile. - if getattr(hgutil.atomictempfile, 'rename', False): - f.rename() - else: - f.close() + f.close() def parseurl(url, heads=[]): checkout = None