Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

commit: prevent user setting from 'leaking' to title after commit

When you set self.opts['user'] the title logic assumes the user has specified a
username on the command line, and so the commit tool shows 'commit as foo' in
the title.

Changeset 00efb118ec12

Parent 8254be17dd49

by Steve Borho

Changes to one file · Browse files at 00efb118ec12 Showing diff from parent 8254be17dd49 Diff from another changeset...

 
946
947
948
949
950
951
952
 
990
991
992
993
994
 
 
995
996
997
 
946
947
948
 
949
950
951
 
989
990
991
 
 
992
993
994
995
996
@@ -946,7 +946,6 @@
  return     self.update_recent_committers(user) - self.opts['user'] = user   incs = hglib.fromutf(self.autoinc_entry.get_text())   self.opts['include'] = [i.strip() for i in incs.split(',') if i.strip()]   autopush = self.autopush.get_active() @@ -990,8 +989,8 @@
  cmdline += ['-X', self.repo.root]   elif self.opts['addremove']:   cmdline += ['--addremove'] - if self.opts['user']: - cmdline.extend(['--user', self.opts['user']]) + if self.opts['user'] or user: + cmdline.extend(['--user', self.opts['user'] or user])   if self.opts['date']:   cmdline.extend(['--date', self.opts['date']])   files += self.opts['include']