schacon/hg-git — Issue #237: Compatibility issue with mercurial 2.0
Author: fe-lix-
Created: 2011-11-28 11:25:06+00:00
State: open

Hello,

When trying to push to a git repository, I receive this error :

```python
File "/usr/lib/python2.7/site-packages/hggit/git_handler.py", line 183, in export_commits
self.save_map()
File "/usr/lib/python2.7/site-packages/hggit/git_handler.py", line 116, in save_map
file.rename()
AttributeError: 'atomictempfile' object has no attribute 'rename'
```

It seems that, in mercurial 2.0, the object atomictempfile properties have been change. As can be seen here :

http://selenic.com/hg/file/ad686c818e1c/mercurial/util.py#l759