Mercurial > hg > hg-git
comparison hggit/__init__.py @ 731:381a135a9548
import: remove redundant imports
These modules are already imported above.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 19 May 2014 18:48:40 -0700 |
parents | 9aa80419328f |
children | 705f0a2a7c18 |
comparison
equal
deleted
inserted
replaced
730:371e62e7cacd | 731:381a135a9548 |
---|---|
124 | 124 |
125 def gclear(ui, repo): | 125 def gclear(ui, repo): |
126 repo.ui.status(_("clearing out the git cache data\n")) | 126 repo.ui.status(_("clearing out the git cache data\n")) |
127 repo.githandler.clear() | 127 repo.githandler.clear() |
128 | 128 |
129 from mercurial import dirstate | |
130 from mercurial import ignore | |
131 if (getattr(dirstate, 'rootcache', False) and | 129 if (getattr(dirstate, 'rootcache', False) and |
132 getattr(ignore, 'readpats', False)): | 130 getattr(ignore, 'readpats', False)): |
133 # only install our dirstate wrapper if it has a hope of working | 131 # only install our dirstate wrapper if it has a hope of working |
134 import gitdirstate | 132 import gitdirstate |
135 extensions.wrapfunction(ignore, 'ignore', gitdirstate.gignore) | 133 extensions.wrapfunction(ignore, 'ignore', gitdirstate.gignore) |