# HG changeset patch # User Mads Kiilerich # Date 1413342536 -7200 # Node ID a36625ef1f357fd9c444f61bb14659d09198ac9e # Parent 46c5983ce48f15fd5fb20722f380dbef90fe077d largefiles: move initialization of standins variable to clarify its "scope" diff -r 46c5983ce48f -r a36625ef1f35 hgext/largefiles/overrides.py --- 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)