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

  • Committer: Jelmer Vernooij
  • Date: 2008-06-28 15:44:20 UTC
  • mfrom: (499.1.2 bzr-gtk)
  • Revision ID: jelmer@samba.org-20080628154420-1557w2cp589yu9o7
Merge addition of refresh button to olive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
                             _i18n('Please select a file from the list,\nor choose the other option.'))
70
70
                return
71
71
            
 
72
            fullpath = self.wt.abspath(os.path.join(self.wtpath, filename))
 
73
            
72
74
            try:
73
 
                self.wt.add([filename])
 
75
                bzrlib.add.smart_add([fullpath])
74
76
            except errors.NotBranchError:
75
77
                error_dialog(_i18n('Directory is not a branch'),
76
78
                             _i18n('You can perform this action only in a branch.'))
77
79
                return
78
80
        elif radio_unknown.get_active():
79
81
            # Add unknown files recursively
 
82
            fullpath = self.wt.abspath(self.wtpath)
 
83
            
80
84
            try:
81
 
                self.wt.add(self.wt.unknowns())
 
85
                bzrlib.add.smart_add([fullpath], True)
82
86
            except errors.NotBranchError:
83
87
                error_dialog(_i18n('Directory is not a branch'),
84
88
                             _i18n('You can perform this action only in a branch.'))