Mercurial > hg
changeset 23041:a36625ef1f35
largefiles: move initialization of standins variable to clarify its "scope"
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 15 Oct 2014 05:08:56 +0200 |
parents | 46c5983ce48f |
children | 2cd3fa4412dc |
files | hgext/largefiles/overrides.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Wed Oct 15 05:08:56 2014 +0200 +++ b/hgext/largefiles/overrides.py Wed Oct 15 05:08:56 2014 +0200 @@ -115,13 +115,13 @@ ui.status(_('adding %s as a largefile\n') % m.rel(f)) bad = [] - standins = [] # Need to lock, otherwise there could be a race condition between # when standins are created and added to the repo. wlock = repo.wlock() try: if not opts.get('dry_run'): + standins = [] lfdirstate = lfutil.openlfdirstate(ui, repo) for f in lfnames: standinname = lfutil.standin(f)