# HG changeset patch # User Martin von Zweigbergk # Date 1416599097 28800 # Node ID 2b23a25f06fd927a7ea26df0a73d100865dc0d02 # Parent 65e48b8d20f58d7b982e4eefb10f720df181d698 largefiles: don't clobber merge action message with user message The message in the action is used for debugging and should not be the same as the question presented to the user. Use a different variable for the user message, so the 'msg' variable already in scope does not get overwritten. diff -r 65e48b8d20f5 -r 2b23a25f06fd hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Tue Dec 02 20:31:19 2014 -0800 +++ b/hgext/largefiles/overrides.py Fri Nov 21 11:44:57 2014 -0800 @@ -437,9 +437,9 @@ # the second parent lfile = splitstandin standin = f - msg = _('remote turned local normal file %s into a largefile\n' - 'use (l)argefile or keep (n)ormal file?' - '$$ &Largefile $$ &Normal file') % lfile + usermsg = _('remote turned local normal file %s into a largefile\n' + 'use (l)argefile or keep (n)ormal file?' + '$$ &Largefile $$ &Normal file') % lfile if (# local has unchanged normal file, pick remote largefile pas and lfile in pas[0] and not pas[0][lfile].cmp(p1[lfile]) or @@ -447,7 +447,7 @@ not (pas and standin in pas[0] and not pas[0][standin].cmp(p2[standin])) and # else, prompt - repo.ui.promptchoice(msg, 0) == 0 + repo.ui.promptchoice(usermsg, 0) == 0 ): # pick remote largefile actions['r'].append((lfile, None, msg)) newglist.append((standin, (p2.flags(standin),), msg)) @@ -458,7 +458,7 @@ # the second parent standin = lfutil.standin(f) lfile = f - msg = _('remote turned local largefile %s into a normal file\n' + usermsg = _('remote turned local largefile %s into a normal file\n' 'keep (l)argefile or use (n)ormal file?' '$$ &Largefile $$ &Normal file') % lfile if (# if remote has unchanged normal file, pick local largefile @@ -468,7 +468,7 @@ not (pas and standin in pas[0] and not pas[0][standin].cmp(p1[standin])) and # else, prompt - repo.ui.promptchoice(msg, 0) == 0 + repo.ui.promptchoice(usermsg, 0) == 0 ): # keep local largefile if branchmerge: # largefile can be restored from standin safely