# HG changeset patch # User Adrian Buehlmann # Date 2009-10-07 18:16:43 # Node ID 7732606b0767848e0ba635ab06c829a99a82441a # Parent f57640bf10d407efaa025072d2c41c407e95c3ad util: state docstring of rename more precisely diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -400,7 +400,7 @@ def lexists(filename): 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 ?)