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

  • Committer: Jelmer Vernooij
  • Date: 2006-09-05 01:08:34 UTC
  • mto: (0.8.83 merge)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060905010834-93a42bcfcbe57d6c
Remove mkdir, add, rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
except:
28
28
    sys.exit(1)
29
29
 
 
30
import bzrlib
30
31
import bzrlib.errors as errors
31
32
import olive.backend.fileops as fileops
32
33
 
73
74
                return
74
75
            
75
76
            try:
76
 
                fileops.add([directory + '/' + filename])
 
77
                bzrlib.add.smart_add([directory + '/' + filename])
77
78
            except errors.NotBranchError:
78
79
                self.dialog.error_dialog(_('Directory is not a branch'),
79
80
                                         _('You can perform this action only in a branch.'))
84
85
        elif radio_unknown.get_active():
85
86
            # Add unknown files recursively
86
87
            try:
87
 
                fileops.add([directory], True)
 
88
                bzrlib.add.smart_add([directory], True)
88
89
            except errors.NotBranchError:
89
90
                self.dialog.error_dialog(_('Directory is not a branch'),
90
91
                                         _('You can perform this action only in a branch.'))