Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgPullCommand.java @ 672:d2552e6a5af6
Effective update of HgParentChildMap when repository got few revisions added
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 12 Jul 2013 16:29:06 +0200 |
parents | d25f0324a27a |
children | 7743a9c10bfa |
comparison
equal
deleted
inserted
replaced
671:002ed1b2baad | 672:d2552e6a5af6 |
---|---|
95 } | 95 } |
96 progress.worked(45); | 96 progress.worked(45); |
97 added = insp.addedChangesets(); | 97 added = insp.addedChangesets(); |
98 | 98 |
99 if (!added.isEmpty()) { | 99 if (!added.isEmpty()) { |
100 // FIXME refresh parentHelper with newly added revisions in effective way | 100 parentHelper.init(); // refresh the map, we use it for phases below |
101 parentHelper.init(); | |
102 } | 101 } |
103 // get remote phases, update local phases to match that of remote | 102 // get remote phases, update local phases to match that of remote |
104 // do not update any remote phase (it's pull, after all) | 103 // do not update any remote phase (it's pull, after all) |
105 final PhasesHelper phaseHelper = new PhasesHelper(implRepo, parentHelper); | 104 final PhasesHelper phaseHelper = new PhasesHelper(implRepo, parentHelper); |
106 if (phaseHelper.isCapableOfPhases()) { | 105 if (phaseHelper.isCapableOfPhases()) { |