[PATCH 3 of 9] hgk: don't use fixed format for dates

Andrew Shadura bugzilla at tut.by
Sun Mar 10 11:24:44 CDT 2013


# HG changeset patch
# User Andrew Shadura <bugzilla at tut.by>
# Date 1362928346 -3600
# Node ID 2e31d3c5d8f7912ce2e1e68848bb39bae9564aba
# Parent  345843b419ed0c99d0f580140b4d48716d4c146f
hgk: don't use fixed format for dates

Don't pass -format with a date format string,
use default instead so users can use their
own preferences.

diff --git a/contrib/hgk b/contrib/hgk
--- a/contrib/hgk
+++ b/contrib/hgk
@@ -380,11 +380,11 @@ proc parsecommit {id contents listed old
 	}
     }
     if {$audate != {}} {
-	set audate [clock format $audate -format "%Y-%m-%d %H:%M:%S"]
+	set audate [clock format $audate]
     }
     if {$comdate != {}} {
 	set cdate($id) $comdate
-	set comdate [clock format $comdate -format "%Y-%m-%d %H:%M:%S"]
+	set comdate [clock format $comdate]
     }
     set commitinfo($id) [list $headline $auname $audate \
 			     $comname $comdate $comment $rev $branch $bookmark]


More information about the Mercurial-devel mailing list