##// END OF EJS Templates
phase: remove useless test, olddata is never None
Patrick Mezard -
r16715:1e24da6f default
parent child Browse files
Show More
@@ -4443,8 +4443,6 b' def phase(ui, repo, *revs, **opts):'
4443 phases.retractboundary(repo, targetphase, nodes)
4443 phases.retractboundary(repo, targetphase, nodes)
4444 finally:
4444 finally:
4445 lock.release()
4445 lock.release()
4446 if olddata is not None:
4447 changes = 0
4448 newdata = repo._phasecache.getphaserevs(repo)
4446 newdata = repo._phasecache.getphaserevs(repo)
4449 changes = sum(o != newdata[i] for i, o in enumerate(olddata))
4447 changes = sum(o != newdata[i] for i, o in enumerate(olddata))
4450 rejected = [n for n in nodes
4448 rejected = [n for n in nodes
General Comments 0
You need to be logged in to leave comments. Login now