aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-04-30 20:09:53 -0500
committerJunio C Hamano <gitster@pobox.com>2013-04-30 22:06:46 -0700
commitc80f4c77633df44c5c8418056d2266f35978d172 (patch)
tree8c5220843083fa1789b3fce1093fdee3af700687 /contrib
parent7e6a0cc47da79dd22c0338aee8750fda92ced5d9 (diff)
downloadgit-c80f4c77633df44c5c8418056d2266f35978d172.tar.gz
git-c80f4c77633df44c5c8418056d2266f35978d172.tar.xz
remote-bzr: cleanup CustomTree
This code was not used at all. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/remote-helpers/git-remote-bzr8
1 files changed, 1 insertions, 7 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr
index c19ed0e26..7452a572c 100755
--- a/contrib/remote-helpers/git-remote-bzr
+++ b/contrib/remote-helpers/git-remote-bzr
@@ -385,9 +385,6 @@ class CustomTree():
def __init__(self, repo, revid, parents, files):
global files_cache
- self.repo = repo
- self.revid = revid
- self.parents = parents
self.updates = {}
def copy_tree(revid):
@@ -435,7 +432,7 @@ class CustomTree():
if basename == '':
return None
fid = bzrlib.generate_ids.gen_file_id(path)
- d = add_entry(fid, dirname, 'directory')
+ add_entry(fid, dirname, 'directory')
return fid
def add_entry(fid, path, kind, mode = None):
@@ -458,7 +455,6 @@ class CustomTree():
(None, executable))
self.files[path] = change[0]
changes.append(change)
- return change
def update_entry(fid, path, kind, mode = None):
dirname, basename = os.path.split(path)
@@ -480,7 +476,6 @@ class CustomTree():
(None, executable))
self.files[path] = change[0]
changes.append(change)
- return change
def remove_entry(fid, path, kind):
dirname, basename = os.path.split(path)
@@ -495,7 +490,6 @@ class CustomTree():
(None, None))
del self.files[path]
changes.append(change)
- return change
for fid, f in self.updates.iteritems():
path = f['path']