Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 12342:70236d6fd844 stable
rename: do not overwrite existing broken symlinks
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 20 Sep 2010 21:46:39 +0200 |
parents | d157e040ac4c |
children | e0ee3e822a9a |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Sep 20 21:42:11 2010 +0200 +++ b/mercurial/cmdutil.py Mon Sep 20 21:46:39 2010 +0200 @@ -378,7 +378,7 @@ return # check for overwrites - exists = os.path.exists(target) + exists = os.path.lexists(target) if not after and exists or after and state in 'mn': if not opts['force']: ui.warn(_('%s: not overwriting - file exists\n') %