util: state docstring of rename more precisely
authorAdrian Buehlmann <adrian@cadifra.com>
Wed, 07 Oct 2009 20:16:43 +0200
changeset 9548 7732606b0767
parent 9547 f57640bf10d4
child 9549 8b8920209317
util: state docstring of rename more precisely
mercurial/util.py
--- a/mercurial/util.py	Mon Oct 05 18:17:13 2009 -0400
+++ b/mercurial/util.py	Wed Oct 07 20:16:43 2009 +0200
@@ -400,7 +400,7 @@
     return True
 
 def rename(src, dst):
-    """forcibly rename a file"""
+    '''atomically rename file src to dst, replacing dst if it exists'''
     try:
         os.rename(src, dst)
     except OSError, err: # FIXME: check err (EEXIST ?)