git branch functions are no longer needed
authorTimo Savola <tsavola@movial.fi>
Fri, 4 Apr 2008 15:08:37 +0000 (18:08 +0300)
committerTimo Savola <tsavola@movial.fi>
Fri, 4 Apr 2008 15:08:37 +0000 (18:08 +0300)
matrix/git.py

index e7cebaf..3ed8347 100644 (file)
@@ -132,30 +132,6 @@ def pull(name, url=None, refspec=None):
        if call(cmd, workdir=name) != 0:
                raise Error(cmd, name)
 
-def create_branch(name, branch, point, checkout=False,link=False,force=False):
-       if checkout:
-               command = ['checkout', '-b']
-       else:
-               command = ['branch']
-
-       if not force:
-               call(command + [branch, point], workdir=name, fail=True)
-       else:
-               #If we need more force, branch to temprepo first and rename
-               call(command + ['_matrix_tmp', point], workdir=name, fail=True)
-               call(['branch','-M','_matrix_tmp',branch],workdir=name,fail=True)
-
-       if link:
-               call(['config','branch.%s.merge'%branch,'refs/heads/%s'%branch],workdir=name)
-
-def delete_branch(name, branch, force=False, quiet=False):
-       if force:
-               command = '-D'
-       else:
-               command = '-d'
-
-       return call(['branch', command, branch], name, quiet, not quiet) == 0
-
 def checkout(name, branch=None):
        cmd = ['checkout']
        if branch: