/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/branch.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2007-02-01 14:42:37 UTC
  • mto: (157.1.2 trunk) (170.1.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 141.
  • Revision ID: szilveszter.farkas@gmail.com-20070201144237-9rqemc5518n6qbl9
Specify a delimiter (currently space) for various histories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
import gtk
26
26
 
 
27
from olive import delimiter
27
28
from errors import show_bzr_error
28
29
 
29
30
from bzrlib.branch import Branch
108
109
        history = config.get_user_option('gbranch_history')
109
110
        if history is not None:
110
111
            self._combo_model = gtk.ListStore(str)
111
 
            for item in history.split('|'):
 
112
            for item in history.split(delimiter):
112
113
                self._combo_model.append([ item ])
113
114
            self._combo.set_model(self._combo_model)
114
115
            self._combo.set_text_column(0)
120
121
        if history is None:
121
122
            config.set_user_option('gbranch_history', location)
122
123
        else:
123
 
            h = history.split('|')
 
124
            h = history.split(delimiter)
124
125
            if location not in h:
125
126
                h.append(location)
126
 
            config.set_user_option('gbranch_history', '|'.join(h))                
 
127
            config.set_user_option('gbranch_history', delimiter.join(h))                
127
128
    
128
129
    def _get_last_revno(self):
129
130
        """ Get the revno of the last revision (if any). """