Skip to content
Snippets Groups Projects
Commit a36625ef authored by Mads Kiilerich's avatar Mads Kiilerich
Browse files

largefiles: move initialization of standins variable to clarify its "scope"

parent 46c5983c
No related branches found
No related tags found
No related merge requests found
......@@ -115,10 +115,9 @@
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'):
......@@ -119,9 +118,10 @@
# 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment