changeset 385:e9e1efd5291c

Fixed problems with extra spaces around tags in .hgtags -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fixed problems with extra spaces around tags in .hgtags manifest hash: 2a40f403d5d7d9c4d39e52fa6edefa74d5797167 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCspTvW7P1GVgWeRoRAg9PAJ9OWdUii+qO+U5ioaAbkFeIROA/7gCdGgau ZP8jmI1h95ZK3KS/QlQMeQ4= =lRFd -----END PGP SIGNATURE-----
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 17 Jun 2005 10:16:31 +0100
parents a29decbf7475
children 494c8e3f47f3
files mercurial/hg.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Thu Jun 16 22:54:37 2005 -0800
+++ b/mercurial/hg.py	Fri Jun 17 10:16:31 2005 +0100
@@ -406,8 +406,8 @@
                 for r in h:
                     for l in fl.revision(r).splitlines():
                         if l:
-                            n, k = l.split(" ")
-                            self.tagscache[k] = bin(n)
+                            n, k = l.split(" ", 1)
+                            self.tagscache[k.strip()] = bin(n)
             except KeyError: pass
             self.tagscache['tip'] = self.changelog.tip()