~damoxc/monodevelop-bzr/monodevelop2

« back to all changes in this revision

Viewing changes to BazaarRepository.cs

  • Committer: Damien Churchill
  • Date: 2008-11-19 12:54:45 UTC
  • Revision ID: damoxc@gmail.com-20081119125445-rlert0y5bv8eljyt
Modified to build for monodevelop 2

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
                        return new BazaarRepository (Bazaar, serverPath);
206
206
                }
207
207
 
208
 
                public override void Update (string localPath, bool recurse, IProgressMonitor monitor)
 
208
                public override void Update (string[] paths, bool recurse, IProgressMonitor monitor)
209
209
                {
210
 
                        Bazaar.Update (localPath, recurse, monitor);
 
210
                        foreach (string path in paths)
 
211
                                Bazaar.Update (path, recurse, monitor);
211
212
                }
212
213
 
213
214
                public override void Commit (ChangeSet changeSet, IProgressMonitor monitor)
221
222
                        Bazaar.Checkout (Url, targetLocalPath, brev, recurse, monitor);
222
223
                }
223
224
 
224
 
                public override void Revert (string localPath, bool recurse, IProgressMonitor monitor)
 
225
                public override void Revert (string[] localPaths, bool recurse, IProgressMonitor monitor)
225
226
                {
226
 
                        Bazaar.Revert (localPath, recurse, monitor, new BazaarRevision (this, BazaarRevision.HEAD));
 
227
                        foreach (string path in localPaths)
 
228
                                Bazaar.Revert (path, recurse, monitor, new BazaarRevision (this, BazaarRevision.HEAD));
227
229
                }
228
230
                
229
 
                public override void Add (string localPath, bool recurse, IProgressMonitor monitor)
 
231
                public override void Add (string[] paths, bool recurse, IProgressMonitor monitor)
230
232
                {
231
 
                        Bazaar.Add (localPath, recurse, monitor);
 
233
                        foreach (string path in paths)
 
234
                                Bazaar.Add (path, recurse, monitor);
232
235
                }
233
236
 
234
237
                public override string GetTextAtRevision (string repositoryPath, Revision revision)
311
314
                        return Bazaar.Diff (baseLocalPath, localPaths);
312
315
                }// PathDiff
313
316
 
314
 
                public override void DeleteFile (string localPath, bool force, IProgressMonitor monitor)
 
317
                public override void DeleteFiles (string[] paths, bool force, IProgressMonitor monitor)
315
318
                {
316
 
                        Bazaar.Remove (localPath, force, monitor);
 
319
                        foreach (string path in paths)
 
320
                                Bazaar.Remove (path, force, monitor);
317
321
                }
318
322
 
319
 
                public override void DeleteDirectory (string localPath, bool force, IProgressMonitor monitor)
 
323
                public override void DeleteDirectories (string[] paths, bool force, IProgressMonitor monitor)
320
324
                {
321
 
                        Bazaar.Remove (localPath, force, monitor);
 
325
                        foreach (string path in paths)
 
326
                                Bazaar.Remove (path, force, monitor);
322
327
                }
323
328
        }
324
329
}