@@ -91,34 +91,27 @@ Sapling recognizes .repo identity
9191
9292clean status
9393 $ sl status
94- abort: synthesizing tree for root *: failure inserting ' vendor/a/sub/c' in manifest: ' vendor/a' is already a file (glob)
95- [255 ]
9694
9795 $ sl log -r . -T " desc:\n { desc} \n files:\n { files % ' {file}\n' } "
98- abort : synthesizing tree for root * (glob)
99-
100- Caused by :
101- 0 : failure inserting ' vendor/a/sub/c ' in manifest
102- 1 : ' vendor/a' is already a file
103- [ 255 ]
96+ desc :
97+ add manifest
98+ files :
99+ frameworks / b
100+ vendor/ a
101+ vendor / a / sub / c
104102
105103modified outer project is reported by status
106104 $ cd vendor/ a
107105 $ echo " project vendor/a" > README
108106 $ git add README && git commit -qm ' add README'
109107 $ cd .. / ..
110108 $ sl status
111- abort: synthesizing tree for root *: failure inserting ' vendor/a/sub/c' in manifest: ' vendor/a' is already a file (glob)
112- [255 ]
109+ M vendor/ a
113110
114111Diff shows subproject commit change for the outer project:
115112
116- $ sl diff
117- abort: synthesizing tree for root * (glob)
118-
119- Caused by :
120- 0 : failure inserting ' vendor/a/sub/c' in manifest
121- 1 : ' vendor/a' is already a file
113+ $ sl diff
114+ abort: Is a directory: $ TESTTMP / repodir/ vendor/ a
122115 [255 ]
123116
124117Modified nested (overlapping) project is reported by status:
@@ -128,17 +121,13 @@ Modified nested (overlapping) project is reported by status:
128121 $ git add README && git commit -qm ' modify c'
129122 $ cd .. / .. / .. / ..
130123 $ sl status
131- abort : synthesizing tree for root *: failure inserting ' vendor/a/sub/c ' in manifest : ' vendor/a ' is already a file (glob)
132- [ 255 ]
124+ M vendor/ a
125+ M vendor / a / sub / c
133126
134127Exact-path diff also works for the nested overlapping project:
135128
136129 $ sl diff vendor/ a/ sub/ c
137- abort: synthesizing tree for root * (glob)
138-
139- Caused by :
140- 0 : failure inserting ' vendor/a/sub/c' in manifest
141- 1 : ' vendor/a' is already a file
130+ abort: Is a directory: $ TESTTMP / repodir/ vendor/ a/ sub/ c
142131 [255 ]
143132
144133Modified non-overlapping project is reported by status:
@@ -148,15 +137,12 @@ Modified non-overlapping project is reported by status:
148137 $ git add README && git commit -qm ' modify b'
149138 $ cd .. / ..
150139 $ sl status
151- abort: synthesizing tree for root *: failure inserting ' vendor/a/sub/c' in manifest: ' vendor/a' is already a file (glob)
152- [255 ]
140+ M frameworks/ b
141+ M vendor/ a
142+ M vendor/ a/ sub/ c
153143
154144Exact-path diff also works for the non-overlapping project:
155145
156146 $ sl diff frameworks/ b
157- abort: synthesizing tree for root * (glob)
158-
159- Caused by :
160- 0 : failure inserting ' vendor/a/sub/c' in manifest
161- 1 : ' vendor/a' is already a file
147+ abort: Is a directory: $ TESTTMP / repodir/ frameworks/ b
162148 [255 ]
0 commit comments