/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/backend/info.py

  • Committer: Jelmer Vernooij
  • Date: 2006-09-04 23:46:31 UTC
  • mto: (0.8.83 merge)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060904234631-278821e3426bb4d4
Remove more unused functions, imports

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
    """
151
151
    from bzrlib.branch import Branch
152
152
    
153
 
    try:
154
 
        branch = Branch.open_containing(location)[0]
155
 
    except errors.NotBranchError:
156
 
        raise NotBranchError(location)
157
 
    except:
158
 
        raise
 
153
    branch = Branch.open_containing(location)[0]
159
154
    
160
155
    return branch.get_push_location()
161
156
 
206
201
    import info_helper
207
202
    
208
203
    ret = {}
209
 
    try:
210
 
        a_bzrdir = bzrdir.BzrDir.open_containing(location)[0]
211
 
    except errors.NotBranchError:
212
 
        raise NotBranchError(location)
 
204
    a_bzrdir = bzrdir.BzrDir.open_containing(location)[0]
213
205
 
214
206
    try:
215
207
        working = a_bzrdir.open_workingtree()
280
272
        branch = Branch.open_containing(location)[0]
281
273
    except errors.NotBranchError:
282
274
        return False
283
 
    except errors.PermissionDenied:
284
 
        raise PermissionDenied(location)
285
275
    else:
286
276
        return True
287
277
        
293
283
    
294
284
    :return: True or False respectively
295
285
    """
296
 
    try:
297
 
        branch = Branch.open_containing(location)[0]
298
 
    except errors.NotBranchError:
299
 
        raise NotBranchError
 
286
    branch = Branch.open_containing(location)[0]
300
287
    
301
288
    try:
302
289
        working = WorkingTree.open_containing(location)[0]