Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc2, 0.4rc3, and 0.4rc4

hggtk/thgconfig: pass repository root to incoming command

Fixes tortoisehg-Bugs-1941368

Changeset 5aa431c9b9c4

Parent 5a5341bda4c5

by Steve Borho

Changes to one file · Browse files at 5aa431c9b9c4 Showing diff from parent 5a5341bda4c5 Diff from another changeset...

 
45
46
47
 
48
49
50
 
51
52
53
 
344
345
346
 
 
 
 
347
348
349
350
351
352
 
353
354
355
 
45
46
47
48
49
50
51
52
53
54
55
 
346
347
348
349
350
351
352
353
354
355
356
357
 
358
359
360
361
@@ -45,9 +45,11 @@
  name = repo.ui.config('web', 'name') or os.path.basename(repo.root)   self.rcpath = [os.sep.join([repo.root, '.hg', 'hgrc'])]   self.set_title('TortoiseHg Configure Repository - ' + name) + self.root = repo.root   else:   self.rcpath = util.user_rcpath()   self.set_title('TortoiseHg Configure User-Global Settings') + self.root = None     shlib.set_tortoise_icon(self, 'menusettings.ico')   self.ini = self.load_config(self.rcpath) @@ -344,12 +346,16 @@
  self.dirty_event()     def _test_path(self, *args): + if not self.root: + error_dialog('No Repository Found', + 'Path testing cannot work without a repository') + return   testpath = self._pathpathedit.get_text()   if not testpath:   return   if testpath[0] == '~':   testpath = os.path.expanduser(testpath) - cmdline = ['hg', 'incoming', '--verbose', testpath] + cmdline = ['hg', 'incoming', '--repository', self.root, '--verbose', testpath]   from hgcmd import CmdDialog   dlg = CmdDialog(cmdline)   dlg.run()