equal
deleted
inserted
replaced
55 from mercurial import ( |
55 from mercurial import ( |
56 context, |
56 context, |
57 diffutil, |
57 diffutil, |
58 error, |
58 error, |
59 hg, |
59 hg, |
|
60 logcmdutil, |
60 patch, |
61 patch, |
61 pycompat, |
62 pycompat, |
62 registrar, |
63 registrar, |
63 scmutil, |
|
64 ) |
64 ) |
65 from mercurial.utils import dateutil |
65 from mercurial.utils import dateutil |
66 |
66 |
67 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
67 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
68 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
68 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
178 dirsadded = zerodict() |
178 dirsadded = zerodict() |
179 tzoffset = zerodict() |
179 tzoffset = zerodict() |
180 |
180 |
181 # If a mercurial repo is available, also model the commit history. |
181 # If a mercurial repo is available, also model the commit history. |
182 if repo: |
182 if repo: |
183 revs = scmutil.revrange(repo, revs) |
183 revs = logcmdutil.revrange(repo, revs) |
184 revs.sort() |
184 revs.sort() |
185 |
185 |
186 progress = ui.makeprogress( |
186 progress = ui.makeprogress( |
187 _('analyzing'), unit=_('changesets'), total=len(revs) |
187 _('analyzing'), unit=_('changesets'), total=len(revs) |
188 ) |
188 ) |