monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Updated Issue 148 - 'mtn list unknown' omits items in a


From: code
Subject: [Monotone-devel] Updated Issue 148 - 'mtn list unknown' omits items in an unknown directory (monotone)
Date: Tue, 07 Aug 2012 14:14:10 +0200

Hello,

The following issue has been updated:

148 - 'mtn list unknown' omits items in an unknown directory
Project: monotone
Status: Started
Reported by: joe 23
URL: https://code.monotone.ca/p/monotone/issues/148/
Labels:
 Type:Defect
 Priority:Medium

Comments (last first):

# By Stephen Leake, Aug  7, 2012:

working in branch nvm.issue-148-80

A solution is implemented, but it's not clear it should be promoted to main. 
Summary:

In mtn 1.0, add had two different defaults for --recursive; when --unknown is 
specified, --recursive defaults to true, when --unknown is not specified, 
--recursive defaults to false.

The fix changes that. It adds the option --[no]-recursive to 'ls unknown' and 
'ls ignored' (because that logic is used in 'add'). Now, for 'add', --unknown 
is orthogonal to --recursive, and the default for --recursive is false.

This preserves the mtn 1.0 behavior for 'mtn add' (except that the warning 
about some files not added is gone), but for 'mtn add --unknown', we now need 
to explicitly add '--recursive'.

 Status: Started
 Owner: stephe

# By Thomas Keller, Feb 27, 2011:

This issue is related to issue 80.

# By joe 23, Feb 27, 2011:

Case 1:

Steps to reproduce the problem:
-------------------------------

1. mkdir foo
2. touch foo/bar
3. mtn list unknown foo/bar

Expected result:
----------------
foo/bar

Actual results:
---------------
[no output]

I think this is a bug, since foo/bar was specified on the command line and it 
is not known.


Case 2:

Steps to reproduce the problem:
-------------------------------

1. mkdir foo
2. touch foo/bar
3. mtn list unknown foo

Expected result:
----------------
foo
foo/bar

Actual results:
---------------
foo

I consider this a bug also, but you could perhaps argue it is 'by design'.  I 
would prefer to see all files and directories under an unknown directory 
included in the 'mtn list unknown' output.



Output of `mtn version --full`:
-------------------------------
0.99.1



--
Issue: https://code.monotone.ca/p/monotone/issues/148/



reply via email to

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