prune: accept '0 0' as a valide --date value stable
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 03 Mar 2014 19:27:42 -0800
branchstable
changeset 818 fcdd9b8c970b
parent 786 59c78fd80a0b
child 819 0b6af104fd78
child 855 97d8a652f9b9
prune: accept '0 0' as a valide --date value I 've no idea why 4c0f6d555032 introduced it with this check.
hgext/evolve.py
--- a/hgext/evolve.py	Wed Jan 22 14:20:50 2014 -0800
+++ b/hgext/evolve.py	Mon Mar 03 19:27:42 2014 -0800
@@ -1321,7 +1321,7 @@
     metadata = {}
     date = opts.get('date')
     user = opts.get('user')
-    if date and '0 0' != date:
+    if date:
         metadata['date'] = '%i %i' % util.parsedate(date)
     if user:
         metadata['user'] = user