Updated Issue 148 - 'mtn list unknown' omits items in an unknown directory (monotone)

[email protected]
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.