##// END OF EJS Templates
update: don't overwrite untracked ignored files on update...
Martin von Zweigbergk -
r23478:30b60216 stable
parent child Browse files
Show More
@@ -298,8 +298,7 b' class mergestate(object):'
298 return r
298 return r
299
299
300 def _checkunknownfile(repo, wctx, mctx, f):
300 def _checkunknownfile(repo, wctx, mctx, f):
301 return (not repo.dirstate._ignore(f)
301 return (os.path.isfile(repo.wjoin(f))
302 and os.path.isfile(repo.wjoin(f))
303 and repo.wopener.audit.check(f)
302 and repo.wopener.audit.check(f)
304 and repo.dirstate.normalize(f) not in repo.dirstate
303 and repo.dirstate.normalize(f) not in repo.dirstate
305 and mctx[f].cmp(wctx[f]))
304 and mctx[f].cmp(wctx[f]))
@@ -231,8 +231,6 b' test conflicting untracked files'
231
231
232 test conflicting untracked ignored file
232 test conflicting untracked ignored file
233
233
234 BROKEN: the ignored file gets overwritten by the remote version
235
236 $ hg up -qC 0
234 $ hg up -qC 0
237 $ echo ignored > .hgignore
235 $ echo ignored > .hgignore
238 $ hg add .hgignore
236 $ hg add .hgignore
@@ -246,9 +244,9 b' BROKEN: the ignored file gets overwritte'
246 $ echo untracked > ignored
244 $ echo untracked > ignored
247 $ hg st
245 $ hg st
248 $ hg up 'desc("add ignored file")'
246 $ hg up 'desc("add ignored file")'
249 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
247 ignored: untracked file differs
250 $ cat ignored
248 abort: untracked files in working directory differ from files in requested revision
251 ignored
249 [255]
252
250
253 test a local add
251 test a local add
254
252
General Comments 0
You need to be logged in to leave comments. Login now