mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
subrepo: do not report known files inside repositories as unknown
This commit is contained in:
parent
54d45ad369
commit
501d7926e8
@ -503,7 +503,7 @@ class dirstate(object):
|
||||
i, j = 0, 0
|
||||
while i < len(files) and j < len(subrepos):
|
||||
subpath = subrepos[j] + "/"
|
||||
if not files[i].startswith(subpath):
|
||||
if files[i] < subpath:
|
||||
i += 1
|
||||
continue
|
||||
while files and files[i].startswith(subpath):
|
||||
|
@ -656,3 +656,22 @@ Try to push from the other side
|
||||
adding manifests
|
||||
adding file changes
|
||||
added 1 changesets with 1 changes to 1 files
|
||||
|
||||
Check status of files when none of them belong to the first
|
||||
subrepository:
|
||||
|
||||
$ hg init subrepo-status
|
||||
$ cd subrepo-status
|
||||
$ hg init subrepo-1
|
||||
$ hg init subrepo-2
|
||||
$ cd subrepo-2
|
||||
$ touch file
|
||||
$ hg add file
|
||||
$ cd ..
|
||||
$ echo subrepo-1 = subrepo-1 > .hgsub
|
||||
$ echo subrepo-2 = subrepo-2 >> .hgsub
|
||||
$ hg add .hgsub
|
||||
$ hg ci -m 'Added subrepos'
|
||||
committing subrepository subrepo-1
|
||||
committing subrepository subrepo-2
|
||||
$ hg st subrepo-2/file
|
||||
|
Loading…
Reference in New Issue
Block a user