changeset 24178:8ca263d9f070

convert: when converting from monotone, use the number 1 for close in extras Monotone used '1' for close while core Mercurial use 1. Now, for consistency, use the same value everywhere. It will be stored as a string anyway and the change will not make any real difference. (The actual value of 'close' doesn't matter as long as extras has such a key.)
author Mads Kiilerich <madski@unity3d.com>
date Wed, 21 Jan 2015 00:02:17 +0100
parents f53b7174facf
children 14d647d25c70
files hgext/convert/monotone.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/monotone.py	Mon Mar 02 15:07:18 2015 -0800
+++ b/hgext/convert/monotone.py	Wed Jan 21 00:02:17 2015 +0100
@@ -297,7 +297,7 @@
         extra = {}
         certs = self.mtngetcerts(rev)
         if certs.get('suspend') == certs["branch"]:
-            extra['close'] = '1'
+            extra['close'] = 1
         return commit(
             author=certs["author"],
             date=util.datestr(util.strdate(certs["date"], "%Y-%m-%dT%H:%M:%S")),