##// END OF EJS Templates
sparse: add local files to temporaryfiles if they exist out of sparse...
Pulkit Goyal -
r39563:9db85644 default
parent child Browse files
Show More
@@ -361,6 +361,11 b' def filterupdatesactions(repo, wctx, mct'
361 elif file in wctx:
361 elif file in wctx:
362 prunedactions[file] = ('r', args, msg)
362 prunedactions[file] = ('r', args, msg)
363
363
364 if branchmerge and type == mergemod.ACTION_MERGE:
365 f1, f2, fa, move, anc = args
366 if not sparsematch(f1):
367 temporaryfiles.append(f1)
368
364 if len(temporaryfiles) > 0:
369 if len(temporaryfiles) > 0:
365 repo.ui.status(_('temporarily included %d file(s) in the sparse '
370 repo.ui.status(_('temporarily included %d file(s) in the sparse '
366 'checkout for merging\n') % len(temporaryfiles))
371 'checkout for merging\n') % len(temporaryfiles))
@@ -172,10 +172,13 b' another'
172 d
172 d
173
173
174 $ hg merge
174 $ hg merge
175 abort: $ENOENT$: $TESTTMP/mvtest/a
175 temporarily included 1 file(s) in the sparse checkout for merging
176 [255]
176 merging a and amove to amove
177 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
178 (branch merge, don't forget to commit)
177
179
178 $ hg up -C 4
180 $ hg up -C 4
181 cleaned up 1 temporarily added file(s) from the sparse checkout
179 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
182 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
180
183
181 $ hg merge
184 $ hg merge
@@ -119,7 +119,7 b' Introduce a conflicting .hgsparse change'
119 Verify conflicting merge pulls in the conflicting changes
119 Verify conflicting merge pulls in the conflicting changes
120
120
121 $ hg merge 1
121 $ hg merge 1
122 temporarily included 1 file(s) in the sparse checkout for merging
122 temporarily included 2 file(s) in the sparse checkout for merging
123 merging backend.sparse
123 merging backend.sparse
124 merging data.py
124 merging data.py
125 warning: conflicts while merging backend.sparse! (edit, then use 'hg resolve --mark')
125 warning: conflicts while merging backend.sparse! (edit, then use 'hg resolve --mark')
@@ -184,7 +184,7 b' Verify rebase conflicts pulls in the con'
184
184
185 $ hg rebase -d 2
185 $ hg rebase -d 2
186 rebasing 1:a2b1de640a62 "edit profile"
186 rebasing 1:a2b1de640a62 "edit profile"
187 temporarily included 1 file(s) in the sparse checkout for merging
187 temporarily included 2 file(s) in the sparse checkout for merging
188 merging backend.sparse
188 merging backend.sparse
189 merging data.py
189 merging data.py
190 warning: conflicts while merging backend.sparse! (edit, then use 'hg resolve --mark')
190 warning: conflicts while merging backend.sparse! (edit, then use 'hg resolve --mark')
@@ -189,7 +189,7 b' Verify rebase temporarily includes exclu'
189
189
190 $ hg rebase -d 1 -r 2 --config extensions.rebase=
190 $ hg rebase -d 1 -r 2 --config extensions.rebase=
191 rebasing 2:b91df4f39e75 "edit hide" (tip)
191 rebasing 2:b91df4f39e75 "edit hide" (tip)
192 temporarily included 1 file(s) in the sparse checkout for merging
192 temporarily included 2 file(s) in the sparse checkout for merging
193 merging hide
193 merging hide
194 warning: conflicts while merging hide! (edit, then use 'hg resolve --mark')
194 warning: conflicts while merging hide! (edit, then use 'hg resolve --mark')
195 unresolved conflicts (see hg resolve, then hg rebase --continue)
195 unresolved conflicts (see hg resolve, then hg rebase --continue)
@@ -224,7 +224,7 b' Verify merge fails if merging excluded f'
224
224
225 $ hg up -q 1
225 $ hg up -q 1
226 $ hg merge -r 2
226 $ hg merge -r 2
227 temporarily included 1 file(s) in the sparse checkout for merging
227 temporarily included 2 file(s) in the sparse checkout for merging
228 merging hide
228 merging hide
229 warning: conflicts while merging hide! (edit, then use 'hg resolve --mark')
229 warning: conflicts while merging hide! (edit, then use 'hg resolve --mark')
230 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
230 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now