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

merge with stable

Changeset e3f56b00872f

Parents b69ac99d4533

Parents 381a6b5bb814

by Steve Borho

Changes to 7 files · Browse files at e3f56b00872f Showing diff from parent b69ac99d4533 381a6b5bb814 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​commit.py Stacked
 
632
633
634
635
 
636
637
638
639
640
 
641
642
643
 
632
633
634
 
635
636
637
638
639
 
640
641
642
643
@@ -632,12 +632,12 @@
  if newbranch not in [p.branch() for p in self.repo.parents()]:   response = gdialog.Confirm(_('Confirm Override Branch'),   [], self, _('A branch named "%s" already exists,\n' - 'override?') % newbranch).run() + 'override?') % self.nextbranch).run()   else:   response = gtk.RESPONSE_YES   else:   response = gdialog.Confirm(_('Confirm New Branch'), [], self, - _('Create new named branch "%s"?') % newbranch).run() + _('Create new named branch "%s"?') % self.nextbranch).run()   if response == gtk.RESPONSE_YES:   self.repo.dirstate.setbranch(newbranch)   elif response != gtk.RESPONSE_NO:
Change 1 of 5 Show Entire File hggtk/​hgtk.py Stacked
 
65
66
67
 
 
68
69
70
 
121
122
123
124
125
 
 
 
 
 
 
126
127
128
 
129
130
131
 
149
150
151
152
 
153
154
155
 
182
183
184
185
 
 
186
187
188
 
384
385
386
387
388
 
 
389
390
391
 
65
66
67
68
69
70
71
72
 
123
124
125
 
 
126
127
128
129
130
131
132
133
134
135
136
137
138
 
156
157
158
 
159
160
161
162
 
189
190
191
 
192
193
194
195
196
 
392
393
394
 
 
395
396
397
398
399
@@ -65,6 +65,8 @@
  fork = ui.configbool('tortoisehg', 'hgtkfork', True)   if not fork or 'THG_HGTK_SPAWN' in os.environ or '--nofork' in sys.argv:   return + if '--repository' in sys.argv or '-R' in sys.argv: + return   # Spawn background process and exit   if hasattr(sys, "frozen"):   args = sys.argv @@ -121,11 +123,16 @@
  raise hglib.ParseError(None, inst)     if args: - cmd, args = args[0], args[1:] - aliases, i = cmdutil.findcmd(cmd, table, ui.config("ui", "strict")) + alias, args = args[0], args[1:] + aliases, i = cmdutil.findcmd(alias, table, ui.config("ui", "strict")) + for a in aliases: + if a.startswith(alias): + alias = a + break   cmd = aliases[0]   c = list(i[1])   else: + alias = None   cmd = None   c = []   @@ -149,7 +156,7 @@
  del options['listfile']   args += get_list_from_file(listfile)   - return (cmd, cmd and i[0] or None, args, options, cmdoptions) + return (cmd, cmd and i[0] or None, args, options, cmdoptions, alias)    def _runcatch(ui, args):   try: @@ -182,7 +189,8 @@
   def runcommand(ui, args):   fullargs = args - cmd, func, args, options, cmdoptions = _parse(ui, args) + cmd, func, args, options, cmdoptions, alias = _parse(ui, args) + cmdoptions['alias'] = alias   ui.setconfig("ui", "verbose", str(bool(options["verbose"])))     if options['help']: @@ -384,8 +392,8 @@
  """repository synchronization tool"""   portable_fork(ui)   from hggtk.synch import run - cmd = sys.argv[1] - if 'push'.startswith(cmd) or 'outgoing'.startswith(cmd): + cmd = opts['alias'] + if cmd in ('push', 'outgoing', 'email'):   opts['pushmode'] = True   else:   opts['pushmode'] = False
Change 1 of 1 Show Entire File hggtk/​history.py Stacked
 
531
532
533
 
 
534
535
536
 
531
532
533
534
535
536
537
538
@@ -531,6 +531,8 @@
  dlg.hide()   self.repo.invalidate()   self.reload_log() + self.changeview._buffer.set_text('') + self.changeview._filelist.clear()     def backout_rev(self, menuitem):   rev = self.currow[treemodel.REVID]
 
109
110
111
112
 
 
 
 
113
114
115
 
109
110
111
 
112
113
114
115
116
117
118
@@ -109,7 +109,10 @@
  return []     if revid not in self.revisions: - ctx = self.repo[revid] + try: + ctx = self.repo[revid] + except IndexError: + return None     summary = ctx.description().replace('\0', '')   if self.repo.ui.configbool('tortoisehg', 'longsummary'):
 
315
316
317
 
318
319
320
 
315
316
317
318
319
320
321
@@ -315,6 +315,7 @@
  self.pbar.begin()   gobject.idle_add(self.populate, self.get_revision())   else: + self.treeview.set_model(None)   self.pbar.set_status_text('Repository is empty')     def set_author_color(self):