##// END OF EJS Templates
merge: use repo.ui directly instead local variable...
Martin Geisler -
r15041:3afe5edd default
parent child Browse files
Show More
@@ -273,7 +273,6 b' def applyupdates(repo, action, wctx, mct'
273 action.sort(key=actionkey)
273 action.sort(key=actionkey)
274
274
275 # prescan for merges
275 # prescan for merges
276 u = repo.ui
277 for a in action:
276 for a in action:
278 f, m = a[:2]
277 f, m = a[:2]
279 if m == 'm': # merge
278 if m == 'm': # merge
@@ -308,8 +307,8 b' def applyupdates(repo, action, wctx, mct'
308 numupdates = len(action)
307 numupdates = len(action)
309 for i, a in enumerate(action):
308 for i, a in enumerate(action):
310 f, m = a[:2]
309 f, m = a[:2]
311 u.progress(_('updating'), i + 1, item=f, total=numupdates,
310 repo.ui.progress(_('updating'), i + 1, item=f, total=numupdates,
312 unit=_('files'))
311 unit=_('files'))
313 if f and f[0] == "/":
312 if f and f[0] == "/":
314 continue
313 continue
315 if m == "r": # remove
314 if m == "r": # remove
@@ -377,7 +376,7 b' def applyupdates(repo, action, wctx, mct'
377 repo.wopener.audit(f)
376 repo.wopener.audit(f)
378 util.setflags(repo.wjoin(f), 'l' in flags, 'x' in flags)
377 util.setflags(repo.wjoin(f), 'l' in flags, 'x' in flags)
379 ms.commit()
378 ms.commit()
380 u.progress(_('updating'), None, total=numupdates, unit=_('files'))
379 repo.ui.progress(_('updating'), None, total=numupdates, unit=_('files'))
381
380
382 return updated, merged, removed, unresolved
381 return updated, merged, removed, unresolved
383
382
General Comments 0
You need to be logged in to leave comments. Login now