##// END OF EJS Templates
largefiles: stylistic cleanup of filemerge
Mads Kiilerich -
r20298:9d350fa0 default
parent child Browse files
Show More
@@ -417,13 +417,10 b' def overridemanifestmerge(origfn, repo, '
417 # Override filemerge to prompt the user about how they wish to merge
417 # Override filemerge to prompt the user about how they wish to merge
418 # largefiles. This will handle identical edits without prompting the user.
418 # largefiles. This will handle identical edits without prompting the user.
419 def overridefilemerge(origfn, repo, mynode, orig, fcd, fco, fca):
419 def overridefilemerge(origfn, repo, mynode, orig, fcd, fco, fca):
420 # Use better variable names here. Because this is a wrapper we cannot
421 # change the variable names in the function declaration.
422 fcdest, fcother, fcancestor = fcd, fco, fca
423 if not lfutil.isstandin(orig):
420 if not lfutil.isstandin(orig):
424 return origfn(repo, mynode, orig, fcdest, fcother, fcancestor)
421 return origfn(repo, mynode, orig, fcd, fco, fca)
425 else:
422
426 if not fcother.cmp(fcdest): # files identical?
423 if not fco.cmp(fcd): # files identical?
427 return None
424 return None
428
425
429 if repo.ui.promptchoice(
426 if repo.ui.promptchoice(
@@ -432,10 +429,8 b' def overridefilemerge(origfn, repo, myno'
432 '$$ &Local $$ &Other') %
429 '$$ &Local $$ &Other') %
433 (lfutil.splitstandin(orig),
430 (lfutil.splitstandin(orig),
434 fca.data().strip(), fcd.data().strip(), fco.data().strip()),
431 fca.data().strip(), fcd.data().strip(), fco.data().strip()),
435 0) == 0:
432 0) == 1:
436 return 0
433 repo.wwrite(fcd.path(), fco.data(), fco.flags())
437 else:
438 repo.wwrite(fcdest.path(), fcother.data(), fcother.flags())
439 return 0
434 return 0
440
435
441 # Copy first changes the matchers to match standins instead of
436 # Copy first changes the matchers to match standins instead of
General Comments 0
You need to be logged in to leave comments. Login now