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

allow 'thg log' to run without a repo

Changeset 7d9e03b70418

Parent 6c0810ba3ab5

by Adrian Buehlmann

Changes to 2 files · Browse files at 7d9e03b70418 Showing diff from parent 6c0810ba3ab5 Diff from another changeset...

 
39
40
41
42
 
43
44
45
 
39
40
41
 
42
43
44
45
@@ -39,7 +39,7 @@
  openflags = 0    nonrepo_commands = '''userconfig shellconfig clone debugcomplete init -about help version thgstatus serve''' +about help version thgstatus serve log'''    def dispatch(args):   """run the command specified in args"""
 
42
43
44
45
 
46
47
48
 
69
70
71
72
 
 
 
73
74
75
 
42
43
44
 
45
46
47
48
 
69
70
71
 
72
73
74
75
76
77
@@ -42,7 +42,7 @@
 class Workbench(QtGui.QMainWindow, HgDialogMixin):   """hg repository viewer/browser application"""   _uifile = 'workbench.ui' - def __init__(self, ui, repo, fromhead=None): + def __init__(self, ui, repo=None, fromhead=None):   self.ui = ui     # these are used to know where to go after a reload @@ -69,7 +69,9 @@
    #self.textview_header.commitsignal.connect(self.commit)   - self.addRepoTab(repo, fromhead) + if repo: + self.addRepoTab(repo, fromhead) +   tw = self.repoTabsWidget   tw.removeTab(0)   self.repoTabChanged()