Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

sync: add convenience methods for default in/out/push/pull

Changeset 54af0afd31fc

Parent c55492662058

by Steve Borho

Changes to one file · Browse files at 54af0afd31fc Showing diff from parent c55492662058 Diff from another changeset...

 
364
365
366
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
368
369
 
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
@@ -364,6 +364,46 @@
  cmdline.append(url)   self.cmd.run(cmdline, display=display)   + ## + ## Workbench toolbar buttons + ## + + def incoming(self): + if 'default' in self.paths: + self.setUrl(self.paths['default']) + self.curalias = 'default' + self.inclicked() + + def pull(self): + if 'default' in self.paths: + self.setUrl(self.paths['default']) + self.curalias = 'default' + self.pullclicked() + + def outgoing(self): + if 'default-push' in self.paths: + self.setUrl(self.paths['default-push']) + self.curalias = 'default-push' + self.outclicked() + elif 'default' in self.paths: + self.setUrl(self.paths['default']) + self.curalias = 'default' + self.outclicked() + + def push(self): + if 'default-push' in self.paths: + self.setUrl(self.paths['default-push']) + self.curalias = 'default-push' + self.pushclicked() + elif 'default' in self.paths: + self.setUrl(self.paths['default']) + self.curalias = 'default' + self.pushclicked() + + ## + ## Sync dialog buttons + ## +   def inclicked(self):   def finished(ret, output):   if ret == 0: