/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-29 18:32:05 UTC
  • mto: This revision was merged to the branch mainline in revision 518.
  • Revision ID: jelmer@samba.org-20080629183205-mmj1fnd8t9l80czj
Fix another use of smart_add.

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
 
            
74
72
            try:
75
 
                bzrlib.add.smart_add([fullpath])
 
73
                self.wt.add([filename])
76
74
            except errors.NotBranchError:
77
75
                error_dialog(_i18n('Directory is not a branch'),
78
76
                             _i18n('You can perform this action only in a branch.'))
79
77
                return
80
78
        elif radio_unknown.get_active():
81
79
            # Add unknown files recursively
82
 
            fullpath = self.wt.abspath(self.wtpath)
83
 
            
84
80
            try:
85
 
                bzrlib.add.smart_add([fullpath], True)
 
81
                self.wt.add(self.wt.unknowns())
86
82
            except errors.NotBranchError:
87
83
                error_dialog(_i18n('Directory is not a branch'),
88
84
                             _i18n('You can perform this action only in a branch.'))