Mercurial > hg > hg-git
changeset 683:2cfda7bc4c46
git_handler.save_tags: drop support for Mercurial < 1.9
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 19 Feb 2014 16:12:27 -0800 |
parents | acb429c62c28 |
children | 13d64d9dd26c |
files | hggit/git_handler.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -184,10 +184,8 @@ for name, sha in sorted(self.tags.iteritems()): if not self.repo.tagtype(name) == 'global': file.write("%s %s\n" % (sha, name)) - # If this complains that NoneType is not callable, then - # atomictempfile no longer has either of rename (pre-1.9) or - # close (post-1.9) - getattr(file, 'rename', getattr(file, 'close', None))() + # If this complains, atomictempfile no longer has close + file.close() ## END FILE LOAD AND SAVE METHODS