changeset 555:39a1cfb03ebd

Unbreak dirstate debug commands -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Unbreak dirstate debug commands manifest hash: 0a4081443c954d278062dbfbc205119eab350191 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxQAJywK+sNU5EO8RAoIvAJ4wYqOWdVtzEL0BClN0+pLNghyS0ACggwmG 05MpMLTY6+VSueiHMwre+UE= =zo+4 -----END PGP SIGNATURE-----
author mpm@selenic.com
date Fri, 01 Jul 2005 00:34:17 -0800
parents 2f515dcfbc24
children f6c6fa15ff70
files mercurial/commands.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Jul 01 00:21:49 2005 -0800
+++ b/mercurial/commands.py	Fri Jul 01 00:34:17 2005 -0800
@@ -346,7 +346,8 @@
 
 def debugcheckdirstate(ui, repo):
     parent1, parent2 = repo.dirstate.parents()
-    dc = repo.dirstate.dup()
+    repo.dirstate.read()
+    dc = repo.dirstate.map
     keys = dc.keys()
     keys.sort()
     m1n = repo.changelog.read(parent1)[0]
@@ -376,7 +377,8 @@
         sys.exit(1)
 
 def debugdumpdirstate(ui, repo):
-    dc = repo.dirstate.dup()
+    repo.dirstate.read()
+    dc = repo.dirstate.map
     keys = dc.keys()
     keys.sort()
     for file in keys: