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

commit: use provided date option

Changeset cfe1d617aa7d

Parent bf6f1c89d5a6

by Steve Borho

Changes to one file · Browse files at cfe1d617aa7d Showing diff from parent bf6f1c89d5a6 Diff from another changeset...

 
7
8
9
10
 
11
12
13
 
22
23
24
25
 
26
27
28
29
30
31
32
33
 
363
364
365
 
 
 
 
 
 
 
 
 
 
 
366
367
 
368
369
370
 
7
8
9
 
10
11
12
13
 
22
23
24
 
25
26
27
28
29
 
30
31
32
 
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
 
377
378
379
380
@@ -7,7 +7,7 @@
   import os   -from mercurial import hg, ui, cmdutil, util, dispatch +from mercurial import hg, ui, cmdutil, util, dispatch, error  from mercurial.node import short as short_hex    from PyQt4.QtCore import * @@ -22,12 +22,11 @@
 # Technical Debt for CommitWidget  # qrefresh support  # threaded / wrapped commit (need a CmdRunner equivalent) -# qctlib decode failure dialog (ask for retry locale, suggest HGENCODING) +# qtlib decode failure dialog (ask for retry locale, suggest HGENCODING)  # Need a unicode-to-UTF8 function  # +1 / -1 head indication (not as important with workbench integration)  # recent committers history  # pushafterci, autoincludes list -# use date option  # qnew/shelve-patch creation dialog (in another file)  # reflow / auto-wrap / message format checks / paste filenames  # spell check / tab completion @@ -363,8 +362,19 @@
  dispatch._dispatch(_ui, ['remove'] + checkedMissing)   else:   return + try: + date = self.opts.get('date') + if date: + util.parsedate(date) + dcmd = ['--date', date] + else: + dcmd = [] + except error.Abort, e: + self.emit(SIGNAL('errorMessage'), hglib.tounicode(str(e))) + dcmd = [] +   cmdline = ['commit', '--user', user, '--message', msg] - cmdline += brcmd + files + cmdline += dcmd + brcmd + files   ret = dispatch._dispatch(_ui, cmdline)   if not ret:   self.addMessageToHistory()