monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone.issue-120: cded246efa3cbe53


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.issue-120: cded246efa3cbe5357de11bcfb29c27d4b21026a
Date: Mon, 21 Mar 2011 14:40:23 +0100 (CET)

revision:            cded246efa3cbe5357de11bcfb29c27d4b21026a
date:                2011-03-21T12:17:30
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 fails as the given PATH is not used to filter, and the
whole workspace is searched instead. The output of the test with 0.99.1
complains that the file is missing, even though it is in a different
directory to the one requested.

The fact that the whole workspace is being searched during "ls changed PATH"
explains why it is slower than "mtn status PATH", as "mtn status" respects
the PATH filter.

manifest:
format_version "1"

new_manifest [16f4884dd3089da9ef6c37f9f4d7155f7d1972bc]

old_revision [c312be5d03b9ab6b4e2bebbd44b0b002743f173d]

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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]