changeset 300:d3400605d246

hg init: when hardlinking, remove dirstate -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hg init: when hardlinking, remove dirstate manifest hash: 48d32cdfe7eacf17b012226a884384e48377b0d8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCqU5gywK+sNU5EO8RAmzxAJ4hQUt/qrIcPzuGHf5dazJkKc9wgwCgpqV/ zSC4SHAvJQ2VptJSSVCEOAg= =QVG+ -----END PGP SIGNATURE-----
author mpm@selenic.com
date Fri, 10 Jun 2005 00:25:04 -0800
parents 7c239fad0f27
children 5add718d92db
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Jun 09 09:48:50 2005 -0800
+++ b/mercurial/commands.py	Fri Jun 10 00:25:04 2005 -0800
@@ -306,6 +306,9 @@
         if link:
             ui.debug("copying by hardlink\n")
             os.system("cp -al %s/.hg .hg" % source)
+            try:
+                os.remove(".hg/dirstate")
+            except: pass
         else:
             repo = hg.repository(ui, ".", create=1)
             other = hg.repository(ui, source)