mercurial/commands.py
changeset 230 00ea3613f82c
parent 227 f57519cddd3d
child 232 fc4a6e5b5812
--- a/mercurial/commands.py	Fri Jun 03 12:54:54 2005 -0800
+++ b/mercurial/commands.py	Fri Jun 03 12:55:56 2005 -0800
@@ -70,7 +70,7 @@
 
 def checkout(ui, repo, changeset=None):
     '''checkout a given changeset or the current tip'''
-    (c, a, d, u) = repo.diffdir(repo.root, repo.current)
+    (c, a, d, u) = repo.diffdir(repo.root)
     if c or a or d:
         ui.warn("aborting (outstanding changes in working directory)\n")
         sys.exit(1)
@@ -160,7 +160,7 @@
 A = added
 R = removed
 ? = not tracked'''
-    (c, a, d, u) = repo.diffdir(repo.root, repo.current)
+    (c, a, d, u) = repo.diffdir(repo.root)
     (c, a, d, u) = map(lambda x: relfilter(repo, x), (c, a, d, u))
 
     for f in c: print "C", f