Mercurial > public > mercurial-scm > hg
comparison hgext/git/index.py @ 52630:70b523d7a60d
git: mention indexing in indexing progress messages
It wasn't clear what was happening to the refs and commits. Adding
'indexing' to the message makes it immediately obvious.
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sat, 04 Jan 2025 09:00:03 -0500 |
parents | 3865451a5fab |
children |
comparison
equal
deleted
inserted
replaced
52629:7d2fc79a3e5a | 52630:70b523d7a60d |
---|---|
275 progress_factory=lambda *args, **kwargs: None, | 275 progress_factory=lambda *args, **kwargs: None, |
276 ): | 276 ): |
277 # Identify all references so we can tell the walker to visit all of them. | 277 # Identify all references so we can tell the walker to visit all of them. |
278 all_refs = gitrepo.listall_references() | 278 all_refs = gitrepo.listall_references() |
279 possible_heads = set() | 279 possible_heads = set() |
280 prog = progress_factory(b'refs') | 280 prog = progress_factory(b'indexing refs') |
281 for pos, ref in enumerate(all_refs): | 281 for pos, ref in enumerate(all_refs): |
282 if prog is not None: | 282 if prog is not None: |
283 prog.update(pos) | 283 prog.update(pos) |
284 if not ( | 284 if not ( |
285 ref.startswith('refs/heads/') # local branch | 285 ref.startswith('refs/heads/') # local branch |
322 # quickly as long as we don't need to figure out the changed files | 322 # quickly as long as we don't need to figure out the changed files |
323 # list. | 323 # list. |
324 db.execute('DELETE FROM changelog') | 324 db.execute('DELETE FROM changelog') |
325 if prog is not None: | 325 if prog is not None: |
326 prog.complete() | 326 prog.complete() |
327 prog = progress_factory(b'commits') | 327 prog = progress_factory(b'indexing commits') |
328 # This walker is sure to visit all the revisions in history, but | 328 # This walker is sure to visit all the revisions in history, but |
329 # only once. | 329 # only once. |
330 pos = -1 | 330 pos = -1 |
331 for commit in walker: | 331 for commit in walker: |
332 if prog is not None: | 332 if prog is not None: |