Show More
@@ -5,7 +5,7 b'' | |||||
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 | import errno, os, re, xml.dom.minidom |
|
8 | import errno, os, re, xml.dom.minidom, shutil | |
9 | from i18n import _ |
|
9 | from i18n import _ | |
10 | import config, util, node, error |
|
10 | import config, util, node, error | |
11 | hg = None |
|
11 | hg = None | |
@@ -153,7 +153,7 b' def subrepo(ctx, path):' | |||||
153 | util.path_auditor(ctx._repo.root)(path) |
|
153 | util.path_auditor(ctx._repo.root)(path) | |
154 | state = ctx.substate.get(path, nullstate) |
|
154 | state = ctx.substate.get(path, nullstate) | |
155 | if state[2] not in types: |
|
155 | if state[2] not in types: | |
156 | raise util.Abort(_('unknown subrepo type %s') % t) |
|
156 | raise util.Abort(_('unknown subrepo type %s') % state[2]) | |
157 | return types[state[2]](ctx, path, state[:2]) |
|
157 | return types[state[2]](ctx, path, state[:2]) | |
158 |
|
158 | |||
159 | # subrepo classes need to implement the following methods: |
|
159 | # subrepo classes need to implement the following methods: | |
@@ -332,10 +332,10 b' class svnsubrepo(object):' | |||||
332 |
|
332 | |||
333 | def remove(self): |
|
333 | def remove(self): | |
334 | if self.dirty(): |
|
334 | if self.dirty(): | |
335 |
self._ |
|
335 | self._ui.warn(_('not removing repo %s because ' | |
336 |
|
|
336 | 'it has changes.\n' % self._path)) | |
337 | return |
|
337 | return | |
338 |
self._ |
|
338 | self._ui.note('removing subrepo %s\n' % self._path) | |
339 | shutil.rmtree(self._ctx.repo.join(self._path)) |
|
339 | shutil.rmtree(self._ctx.repo.join(self._path)) | |
340 |
|
340 | |||
341 | def get(self, state): |
|
341 | def get(self, state): |
General Comments 0
You need to be logged in to leave comments.
Login now