11
def add_cb(self, menu, files):
14
def ignore_cb(self, menu, files):
17
def unignore_cb(self, menu, files):
20
def log_cb(self, menu, files):
23
def diff_cb(self, menu, files):
26
def remove_cb(self, menu, files):
11
def add_cb(self, menu, vfs_file):
12
# We can only cope with local files
13
if vfs_file.get_uri_scheme() != 'file':
16
file = vfs_file.get_uri()
18
tree, path = WorkingTree.open_containing(file)
19
except NotBranchError:
26
def ignore_cb(self, menu, vfs_file):
27
# We can only cope with local files
28
if vfs_file.get_uri_scheme() != 'file':
31
file = vfs_file.get_uri()
33
tree, path = WorkingTree.open_containing(file)
34
except NotBranchError:
39
def unignore_cb(self, menu, vfs_file):
40
# We can only cope with local files
41
if vfs_file.get_uri_scheme() != 'file':
44
file = vfs_file.get_uri()
46
tree, path = WorkingTree.open_containing(file)
47
except NotBranchError:
52
def unignore_cb(self, menu, vfs_file):
53
# We can only cope with local files
54
if vfs_file.get_uri_scheme() != 'file':
57
file = vfs_file.get_uri()
59
tree, path = WorkingTree.open_containing(file)
60
except NotBranchError:
65
def unignore_cb(self, menu, vfs_file):
66
# We can only cope with local files
67
if vfs_file.get_uri_scheme() != 'file':
70
file = vfs_file.get_uri()
72
tree, path = WorkingTree.open_containing(file)
73
except NotBranchError:
78
def log_cb(self, menu, vfs_file):
79
# We can only cope with local files
80
if vfs_file.get_uri_scheme() != 'file':
83
file = vfs_file.get_uri()
85
tree, path = WorkingTree.open_containing(file)
86
except NotBranchError:
91
def unignore_cb(self, menu, vfs_file):
92
# We can only cope with local files
93
if vfs_file.get_uri_scheme() != 'file':
96
file = vfs_file.get_uri()
98
tree, path = WorkingTree.open_containing(file)
99
except NotBranchError:
104
def diff_cb(self, menu, vfs_file):
105
# We can only cope with local files
106
if vfs_file.get_uri_scheme() != 'file':
109
file = vfs_file.get_uri()
111
tree, path = WorkingTree.open_containing(file)
112
except NotBranchError:
117
def unignore_cb(self, menu, vfs_file):
118
# We can only cope with local files
119
if vfs_file.get_uri_scheme() != 'file':
122
file = vfs_file.get_uri()
124
tree, path = WorkingTree.open_containing(file)
125
except NotBranchError:
130
def remove_cb(self, menu, vfs_file):
131
# We can only cope with local files
132
if vfs_file.get_uri_scheme() != 'file':
135
file = vfs_file.get_uri()
137
tree, path = WorkingTree.open_containing(file)
138
except NotBranchError:
143
def unignore_cb(self, menu, vfs_file):
144
# We can only cope with local files
145
if vfs_file.get_uri_scheme() != 'file':
148
file = vfs_file.get_uri()
150
tree, path = WorkingTree.open_containing(file)
151
except NotBranchError:
29
156
def get_file_items(self, window, files):