# HG changeset patch # User Bryan O'Sullivan # Date 2013-04-13 00:18:52 # Node ID cdf764a2f7a58bd4179d1d943ebeb28abe27adca # Parent 6edb0e18b83c441dcdee7146f40f49c79a2c69e1 repoview: remove unreachable code Found using Cython. diff --git a/hgext/transplant.py b/hgext/transplant.py --- a/hgext/transplant.py +++ b/hgext/transplant.py @@ -294,10 +294,10 @@ class transplanter(object): return n - def resume(self, repo, source, opts=None): + def resume(self, repo, source, opts): '''recover last transaction and apply remaining changesets''' if os.path.exists(os.path.join(self.path, 'journal')): - n, node = self.recover(repo) + n, node = self.recover(repo, opts) self.ui.status(_('%s transplanted as %s\n') % (short(node), short(n))) seriespath = os.path.join(self.path, 'series') @@ -312,7 +312,7 @@ class transplanter(object): self.apply(repo, source, revmap, merges, opts) - def recover(self, repo): + def recover(self, repo, opts): '''commit working directory using journal metadata''' node, user, date, message, parents = self.readlog() merge = False diff --git a/mercurial/repoview.py b/mercurial/repoview.py --- a/mercurial/repoview.py +++ b/mercurial/repoview.py @@ -55,7 +55,6 @@ def computeunserved(repo): return frozenset(hiddens | secrets) else: return hiddens - return frozenset() def computemutable(repo): """compute the set of revision that should be filtered when used a server