/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: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-10 11:49:24 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060810114924-d1e0acc313c07d2b
Implemented Informations functionality; some bzrlib API changes handled.

2006-08-10  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/backend/info_helper.py: made it 0.9 API compatible
    * olive/backend/info.py: small bug fixed
    * olive/frontend/gtk/info.py: implemented Information window
    * olive.glade: added Informations window
    * Olive is two months old!

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
from bzrlib.branch import Branch
23
23
from bzrlib.workingtree import WorkingTree
24
24
 
25
 
from errors import (DifferentBranchesError, NotBranchError, PermissionDenied,
26
 
                    PrefixFormatError, RevisionValueError)
 
25
from errors import (DifferentBranchesError, NotBranchError, PrefixFormatError,
 
26
                    RevisionValueError)
27
27
 
28
28
def diff(revision=None, file_list=None, diff_options=None, prefix=None):
29
29
    """ Save the diff into a temporary file.
246
246
    except errors.NoRepositoryPresent:
247
247
        pass
248
248
 
249
 
def is_branch(location):
250
 
    """ Check if the location is a branch.
251
 
    
252
 
    :param location: the location you want to check
253
 
    
254
 
    :return: True or False respectively
255
 
    """
256
 
    try:
257
 
        branch = Branch.open_containing(location)[0]
258
 
    except errors.NotBranchError:
259
 
        return False
260
 
    except errors.PermissionDenied:
261
 
        raise PermissionDenied(location)
262
 
    else:
263
 
        return True
264
 
        
265
 
 
266
249
def is_checkout(location):
267
250
    """ Check if the location is a checkout.
268
251
    
292
275
    else:
293
276
        return False
294
277
 
 
278
 
295
279
def log(location, timezone='original', verbose=False, show_ids=False,
296
280
        forward=False, revision=None, log_format=None, message=None,
297
281
        long=False, short=False, line=False):