summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2013-11-07 11:07:08 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2013-11-22 13:49:25 +0000
commit9c4d3264d2ce8e3a4213915c88527da83c05aabe (patch)
tree8894d86bae693e16a80f2fde49aeec3c41372a99
parentcf3d4f9e9449389f8dba2bb2b802c07f5462192e (diff)
downloadmorph-9c4d3264d2ce8e3a4213915c88527da83c05aabe.tar.gz
Remove unused invent_new_branch method
-rw-r--r--morphlib/plugins/branch_and_merge_new_plugin.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/morphlib/plugins/branch_and_merge_new_plugin.py b/morphlib/plugins/branch_and_merge_new_plugin.py
index 9c4cd53e..09dd5bd8 100644
--- a/morphlib/plugins/branch_and_merge_new_plugin.py
+++ b/morphlib/plugins/branch_and_merge_new_plugin.py
@@ -351,18 +351,6 @@ class SimpleBranchAndMergePlugin(cliapp.Plugin):
logging.debug('All strata loaded')
return morphset
- def _invent_new_branch(self, cached_repo, default_name):
- counter = 0
- candidate = default_name
- while True:
- try:
- cached_repo.resolve_ref(candidate)
- except morphlib.cachedrepo.InvalidReferenceError:
- return candidate
- else:
- counter += 1
- candidate = '%s-%s' % (default_name, counter)
-
def edit(self, args):
'''Edit or checkout a component in a system branch.