Commits

Takafumi Arakaki  committed 4184ce4

Fake date

  • Participants
  • Parent commits cddd2ae

Comments (0)

Files changed (1)

 def hg_branch(revision, name):
     command(['hg', 'update', revision])
     command(['hg', 'branch', name])
-    command(['hg', 'commit', '--message',
+    date = command(['hg', 'log', '--rev', revision,
+                    '--template', '{date|hgdate}'])
+    (ts, tz) = date.split(' ', 1)
+    newts = int(ts) + 10
+    newdate = '{0} {1}'.format(newts, tz)
+    command(['hg', 'commit', '--date', newdate, '--message',
              "[HUCB] Add new branch '{0}' to uniquify heads.".format(name)])