/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-19 20:31:46 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-20060819203146-1a5b098844b3f106
GUI (toolbar + menu) cleanup.

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

    * olive/frontend/gtk/__init__.py: applied Diff toolbutton menu
    * olive/frontend/gtk/menu.py: implemented the Diff toolbutton menu
    * cmenu.ui: added Diff toolbutton menu; removed Log from right context menu
    * olive.glade: swapped Diff and Log toolbuttons; coverted log button to an
      ordinary GtkToolButton

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
    else:
261
 
        return True
262
 
        
263
 
 
264
249
def is_checkout(location):
265
250
    """ Check if the location is a checkout.
266
251
    
290
275
    else:
291
276
        return False
292
277
 
 
278
 
293
279
def log(location, timezone='original', verbose=False, show_ids=False,
294
280
        forward=False, revision=None, log_format=None, message=None,
295
281
        long=False, short=False, line=False):