tests: fix test-update-branches to remove non-conflicting file
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 06 Mar 2017 23:19:57 -0800
changeset 31174 842489d18118
parent 31173 052e4f1ffce9
child 31175 7433b3bc55ee
tests: fix test-update-branches to remove non-conflicting file I was clearly very sloppy when I wrote the test case for experimental.updatecheck=noconflict. The test case that checks that one can move between commits with a removed file was deleting a file that was modified between the source and target commits, which resulted in a "change/delete" conflict. Since that is a conlict, the update correctly failed. Let's fix the test by removing a file that is not modified between the two commits.
tests/test-update-branches.t
--- a/tests/test-update-branches.t	Sat Feb 25 17:08:42 2017 +0900
+++ b/tests/test-update-branches.t	Mon Mar 06 23:19:57 2017 -0800
@@ -288,11 +288,8 @@
 
 Locally removed file is allowed
   $ hg up -qC 3
-  $ hg rm a
+  $ hg rm foo
   $ hg up -q 4
-  abort: uncommitted changes
-  (commit or update --merge to allow merge)
-  [255]
 
 File conflict is not allowed
   $ hg up -qC 3