##// END OF EJS Templates
progress: add progress calls to changeset discovery
Matt Mackall -
r10435:956498af default
parent child Browse files
Show More
@@ -1342,6 +1342,7 b' class localrepository(repo.repository):'
1342
1342
1343 if r:
1343 if r:
1344 reqcnt += 1
1344 reqcnt += 1
1345 self.ui.progress('searching', reqcnt, unit='queries')
1345 self.ui.debug("request %d: %s\n" %
1346 self.ui.debug("request %d: %s\n" %
1346 (reqcnt, " ".join(map(short, r))))
1347 (reqcnt, " ".join(map(short, r))))
1347 for p in xrange(0, len(r), 10):
1348 for p in xrange(0, len(r), 10):
@@ -1354,6 +1355,7 b' class localrepository(repo.repository):'
1354 while search:
1355 while search:
1355 newsearch = []
1356 newsearch = []
1356 reqcnt += 1
1357 reqcnt += 1
1358 self.ui.progress('searching', reqcnt, unit='queries')
1357 for n, l in zip(search, remote.between(search)):
1359 for n, l in zip(search, remote.between(search)):
1358 l.append(n[1])
1360 l.append(n[1])
1359 p = n[0]
1361 p = n[0]
@@ -1389,6 +1391,7 b' class localrepository(repo.repository):'
1389 self.ui.debug("found new changesets starting at " +
1391 self.ui.debug("found new changesets starting at " +
1390 " ".join([short(f) for f in fetch]) + "\n")
1392 " ".join([short(f) for f in fetch]) + "\n")
1391
1393
1394 self.ui.progress('searching', None, unit='queries')
1392 self.ui.debug("%d total queries\n" % reqcnt)
1395 self.ui.debug("%d total queries\n" % reqcnt)
1393
1396
1394 return base.keys(), list(fetch), heads
1397 return base.keys(), list(fetch), heads
General Comments 0
You need to be logged in to leave comments. Login now