summaryrefslogtreecommitdiff
path: root/tests/test-rebuildstate.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-rebuildstate.t')
-rw-r--r--tests/test-rebuildstate.t30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/test-rebuildstate.t b/tests/test-rebuildstate.t
new file mode 100644
index 0000000..954d343
--- /dev/null
+++ b/tests/test-rebuildstate.t
@@ -0,0 +1,30 @@
+basic test for hg debugrebuildstate
+
+ $ hg init repo
+ $ cd repo
+
+ $ touch foo bar
+ $ hg ci -Am 'add foo bar'
+ adding bar
+ adding foo
+
+ $ touch baz
+ $ hg add baz
+ $ hg rm bar
+
+ $ hg debugrebuildstate
+
+state dump after
+
+ $ hg debugstate --nodates | sort
+ n 644 -1 bar
+ n 644 -1 foo
+
+status
+
+ $ hg st -A
+ ! bar
+ ? baz
+ C foo
+
+ $ cd ..