# HG changeset patch # User Matt Mackall # Date 1156188356 18000 # Node ID 833677bc9791d193a92f3f1542feef617cf18f6d # Parent 545d33aa3f824c2e57a0457851a349762189f51e merge: rename mysterious variable diff -r 545d33aa3f82 -r 833677bc9791 mercurial/merge.py --- a/mercurial/merge.py Mon Aug 21 14:21:42 2006 -0500 +++ b/mercurial/merge.py Mon Aug 21 14:25:56 2006 -0500 @@ -145,7 +145,7 @@ if partial and not partial(f): continue if f in m2: - s = 0 + queued = 0 # are files different? if n != m2[f]: @@ -154,20 +154,21 @@ if n != a and m2[f] != a: repo.ui.debug(_(" %s versions differ, resolve\n") % f) merge[f] = (fmerge(f, mw, m2, ma), m1.get(f, nullid), m2[f]) - s = 1 + queued = 1 # are we clobbering? # is remote's version newer? # or are we going back in time and clean? elif overwrite or m2[f] != a or (backwards and mw[f] == m1[f]): repo.ui.debug(_(" remote %s is newer, get\n") % f) get[f] = (m2.execf(f), m2[f]) - s = 1 + queued = 1 elif f in umap or f in added: # this unknown file is the same as the checkout # we need to reset the dirstate if the file was added get[f] = (m2.execf(f), m2[f]) - if not s and mw.execf(f) != m2.execf(f): + # do we still need to look at mode bits? + if not queued and mw.execf(f) != m2.execf(f): if overwrite: repo.ui.debug(_(" updating permissions for %s\n") % f) util.set_exec(repo.wjoin(f), m2.execf(f))