Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

stable sync: remove prepended file:/// from dropped urls; Mercurial 1.9 cannot parse

Changeset 3cabbc71f95b

Parent af814f605db3

by Steve Borho

Changes to one file · Browse files at 3cabbc71f95b Showing diff from parent af814f605db3 Diff from another changeset...

 
527
528
529
530
 
531
532
533
534
535
 
536
537
 
 
 
 
 
538
539
540
 
527
528
529
 
530
531
532
533
534
 
535
536
537
538
539
540
541
542
543
544
545
@@ -527,14 +527,19 @@
  data = event.mimeData()   if data.hasUrls():   url = data.urls()[0] - self.setUrl(hglib.fromunicode(url.toString())) + lurl = hglib.fromunicode(url.toString())   event.setDropAction(Qt.CopyAction)   event.accept()   elif data.hasText():   text = data.text() - self.setUrl(hglib.fromunicode(text)) + lurl = hglib.fromunicode(text)   event.setDropAction(Qt.CopyAction)   event.accept() + else: + return + if lurl.startswith('file:///'): + lurl = lurl[8:] + self.setUrl(lurl)     def canExit(self):   return not self.cmd.core.running()