equal
deleted
inserted
replaced
19 |
19 |
20 from .i18n import _ |
20 from .i18n import _ |
21 from .node import ( |
21 from .node import ( |
22 bin, |
22 bin, |
23 hex, |
23 hex, |
24 nullid, |
|
25 short, |
24 short, |
26 ) |
25 ) |
27 from . import ( |
26 from . import ( |
28 cmdutil, |
27 cmdutil, |
29 encoding, |
28 encoding, |
684 @annotatesubrepoerror |
683 @annotatesubrepoerror |
685 def remove(self): |
684 def remove(self): |
686 # we can't fully delete the repository as it may contain |
685 # we can't fully delete the repository as it may contain |
687 # local-only history |
686 # local-only history |
688 self.ui.note(_(b'removing subrepo %s\n') % subrelpath(self)) |
687 self.ui.note(_(b'removing subrepo %s\n') % subrelpath(self)) |
689 hg.clean(self._repo, nullid, False) |
688 hg.clean(self._repo, self._repo.nullid, False) |
690 |
689 |
691 def _get(self, state): |
690 def _get(self, state): |
692 source, revision, kind = state |
691 source, revision, kind = state |
693 parentrepo = self._repo._subparent |
692 parentrepo = self._repo._subparent |
694 |
693 |