Commits

Sean Farley  committed 99c503c

util: remove pre-1.9 mercurial code from pickle_atomic

  • Participants
  • Parent commits 37989fb

Comments (0)

Files changed (1)

File hgsubversion/util.py

     """
     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