# HG changeset patch # User Stephen Darnell # Date 1125195302 25200 # Node ID 58371c4c2c8fe6f4a7d31a58e9ffaeedaf138bc3 # Parent 6130de75bb2a66b583dceff2841e5f50c3de158f Remove the lock file copied during clone (was the source lock file) Index: hg/mercurial/commands.py =================================================================== diff -r 6130de75bb2a -r 58371c4c2c8f mercurial/commands.py --- 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)