Mercurial > hg
changeset 1114:58371c4c2c8f
Remove the lock file copied during clone (was the source lock file)
Index: hg/mercurial/commands.py
===================================================================
author | Stephen Darnell |
---|---|
date | Sat, 27 Aug 2005 19:15:02 -0700 |
parents | 6130de75bb2a |
children | 89f54e72581d |
files | mercurial/commands.py |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Aug 27 18:55:14 2005 -0700 +++ b/mercurial/commands.py Sat Aug 27 19:15:02 2005 -0700 @@ -581,10 +581,12 @@ util.copytree(os.path.join(source, ".hg"), os.path.join(dest, ".hg"), copyfile) - try: - os.unlink(os.path.join(dest, ".hg", "dirstate")) - except OSError: - pass + + for fn in "dirstate", "lock": + try: + os.unlink(os.path.join(dest, ".hg", fn)) + except OSError: + pass repo = hg.repository(ui, dest)