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

settings: show username on global settings tab

Changeset b6c699c6a184

Parent 7094a32e83af

by Yuya Nishihara

Changes to one file · Browse files at b6c699c6a184 Showing diff from parent 7094a32e83af Diff from another changeset...

 
447
448
449
 
 
 
450
451
452
453
454
455
 
456
457
458
 
447
448
449
450
451
452
453
454
455
456
457
 
458
459
460
461
@@ -447,12 +447,15 @@
  self.settings = s   self.restoreGeometry(s.value('settings/geom').toByteArray())   + def username(): + return util.username() or os.environ.get('USERNAME') or _('User') +   self.conftabs = QTabWidget()   layout.addWidget(self.conftabs)   self.conftabs.addTab(SettingsForm(rcpath=util.user_rcpath(),   focus=focus, readonly=self.readonly),   QIcon(paths.get_tortoise_icon('settings_user.ico')), - _('User global settings')) + _("%s's global settings") % username())   if repo:   reporcpath = os.sep.join([repo.root, '.hg', 'hgrc'])   reponame = hglib.tounicode(os.path.basename(repo.root))