Mercurial > hgsubversion
comparison hgsubversion/svnmeta.py @ 1558:ae572c9be4e6
cleanup: remove lots of dead imports and code found by pyflakes
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 24 Mar 2018 17:04:19 -0400 |
parents | cff81f35b31e |
children |
comparison
equal
deleted
inserted
replaced
1557:dd409375c261 | 1558:ae572c9be4e6 |
---|---|
1 import posixpath | 1 import posixpath |
2 import os | 2 import os |
3 import tempfile | |
4 | 3 |
5 from mercurial import context | 4 from mercurial import context |
6 from mercurial import error as hgerror | 5 from mercurial import error as hgerror |
7 from mercurial import util as hgutil | 6 from mercurial import util as hgutil |
8 from mercurial import revlog | 7 from mercurial import revlog |
901 endbranches.pop(b) | 900 endbranches.pop(b) |
902 bname = b or 'default' | 901 bname = b or 'default' |
903 self.ui.status('Marked branch %s as closed.\n' % bname) | 902 self.ui.status('Marked branch %s as closed.\n' % bname) |
904 | 903 |
905 def delbranch(self, branch, node, rev): | 904 def delbranch(self, branch, node, rev): |
906 pctx = self.repo[node] | |
907 files = pctx.manifest().keys() | |
908 extra = self.genextra(rev.revnum, branch) | 905 extra = self.genextra(rev.revnum, branch) |
909 self.mapbranch(extra, True) | 906 self.mapbranch(extra, True) |
910 ctx = context.memctx(self.repo, | 907 ctx = context.memctx(self.repo, |
911 (node, revlog.nullid), | 908 (node, revlog.nullid), |
912 self.getmessage(rev), | 909 self.getmessage(rev), |
913 [], | 910 [], |
914 lambda x, y, z: None, | 911 lambda x, y, z: None, |
915 util.forceutf8(self.authors[rev.author]), | 912 util.forceutf8(self.authors[rev.author]), |
916 self.fixdate(rev.date), | 913 self.fixdate(rev.date), |
917 extra) | 914 extra) |
918 new = self.repo.svn_commitctx(ctx) | 915 self.repo.svn_commitctx(ctx) |
919 self.ui.status('Marked branch %s as closed.\n' % (branch or 'default')) | 916 self.ui.status('Marked branch %s as closed.\n' % (branch or 'default')) |