status: don't recurse into unknown nested trees for extra files

Bug #2060657 reported by dvp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Breezy
Triaged
Low
Unassigned

Bug Description

If project have subdir and subdir already in vcs and when new files are added to subdir,
command "bzr add ." in project dir dont't add them.

For exmaple, for project structure:

projectdir/
  subdir/
    newfile

"bzr status" report:
unknown:
  subdir/newfile

but "bzr add ." in projectdir do nothing, only "bzr add subdir" - adds subdir/newfile

Old bazaar has another behavior: "bzr add ." in projectdir adds all new files ("subdir/newfile" in my case)
- as described in documentation

This bug appears when using the etckeeper package and bzr vcs together in fresh debian or ubuntu.

Tags: status
Revision history for this message
dvp (dvp) wrote :

update: breezy ignore new files only in subdirs with .git present:

projectdir/
  subdir1/
    .git/
    newfile1
  subdir2/
    newfile2

bzr st output:
unknown:
  subdir1/newfile1
  subdir2/newfile2

bzr add output:
adding subdir2/newfile2

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is behaving as expected - "bzr add" is not meant to add files in other repositories. Arguably we should be showing the other repositories here rather than the files in them. But that's something that is not new to breezy compared to bazaar.

Changed in brz:
status: New → Triaged
importance: Undecided → Low
summary: - add . don't add files un subdirs
+ status: don't recurse into unknown nested trees for extra files
tags: added: status
removed: add etckeeper recoursion
Revision history for this message
dvp (dvp) wrote :

I could not find a description of this behavior in the breezy documentation, and was confused, becose bazaar just add such files.

It turns out that breezy is no longer a valid choice for etckeeper if there are other repositories in /etc.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This behaviour is no different from bazaar with plugins for other version control systems installed. Bzr also would never recurse into other bzr directories.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.