Mercurial > hg-stable
changeset 9548:7732606b0767
util: state docstring of rename more precisely
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 07 Oct 2009 20:16:43 +0200 |
parents | f57640bf10d4 |
children | 8b8920209317 |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 ?)