Mercurial > hg
changeset 23470:2b23a25f06fd
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.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 21 Nov 2014 11:44:57 -0800 |
parents | 65e48b8d20f5 |
children | 57b9c51cb4b4 |
files | hgext/largefiles/overrides.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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