[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone.issue-120: f0cb931713e1a3b3
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone.issue-120: f0cb931713e1a3b31e07e88b07a644552c07ee91 |
Date: |
Mon, 21 Mar 2011 14:40:31 +0100 (CET) |
revision: f0cb931713e1a3b31e07e88b07a644552c07ee91
date: 2011-03-21T13:10:38
author: Richard Hopkins <address@hidden>
branch: net.venge.monotone.issue-120
changelog:
New test for issue-120 - "ls changed PATH" should respect the given PATH
filter
This test currently passes as "mtn status" has been refactored so it can be
called from "mtn ls changed". As they both now use the same function, the
timing issue should have been solved. It also helps using the same function
as before "mtn status y" worked where "mtn ls changed y" didn't - this is
now solved.
See cded246efa3cbe5357de11bcfb29c27d4b21026a for where this test originally
came from.
manifest:
format_version "1"
new_manifest [e49b4f3f4dcb49415ed114c4273ba8bea3d30075]
old_revision [589123f5a2d35b61c11f8eab999085370a5f42a1]
add_dir "test/func/ls_changed_respects_path_masks"
add_file "test/func/ls_changed_respects_path_masks/__driver__.lua"
content [f6b46f6573d19c035feff9dfa386283b23e406c0]
============================================================
--- /dev/null
+++ test/func/ls_changed_respects_path_masks/__driver__.lua f6b46f6573d19c035feff9dfa386283b23e406c0
@@ -0,0 +1,25 @@
+
+-- remove "x/a.txt" - so it becomes missing
+-- then "mtn ls changed y"
+-- we should get no output - as there are no changes in "y"
+
+mtn_setup()
+
+mkdir("x")
+mkdir("y")
+
+writefile("x/a.txt", "a")
+writefile("x/b.txt", "b")
+writefile("y/a.txt", "a")
+writefile("y/b.txt", "b")
+
+check(mtn("add", "x/a.txt"), 0, false, false)
+check(mtn("add", "x/b.txt"), 0, false, false)
+check(mtn("add", "y/a.txt"), 0, false, false)
+check(mtn("add", "y/b.txt"), 0, false, false)
+
+commit()
+
+remove("x/a.txt")
+
+check(mtn("ls", "changed", "y"), 0, nil, false)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone.issue-120: f0cb931713e1a3b31e07e88b07a644552c07ee91,
code <=