equal
deleted
inserted
replaced
118 raise util.Abort(_('%r cannot be used in a tag name') % c) |
118 raise util.Abort(_('%r cannot be used in a tag name') % c) |
119 |
119 |
120 self.hook('pretag', throw=True, node=hex(node), tag=name, local=local) |
120 self.hook('pretag', throw=True, node=hex(node), tag=name, local=local) |
121 |
121 |
122 def writetag(fp, name, munge, prevtags): |
122 def writetag(fp, name, munge, prevtags): |
|
123 fp.seek(0, 2) |
123 if prevtags and prevtags[-1] != '\n': |
124 if prevtags and prevtags[-1] != '\n': |
124 fp.write('\n') |
125 fp.write('\n') |
125 fp.write('%s %s\n' % (hex(node), munge and munge(name) or name)) |
126 fp.write('%s %s\n' % (hex(node), munge and munge(name) or name)) |
126 fp.close() |
127 fp.close() |
127 |
128 |
1979 tr.close() |
1980 tr.close() |
1980 finally: |
1981 finally: |
1981 del tr |
1982 del tr |
1982 |
1983 |
1983 if changesets > 0: |
1984 if changesets > 0: |
|
1985 # forcefully update the on-disk branch cache |
|
1986 self.ui.debug(_("updating the branch cache\n")) |
|
1987 self.branchcache = None |
|
1988 self.branchtags() |
1984 self.hook("changegroup", node=hex(self.changelog.node(cor+1)), |
1989 self.hook("changegroup", node=hex(self.changelog.node(cor+1)), |
1985 source=srctype, url=url) |
1990 source=srctype, url=url) |
1986 |
1991 |
1987 for i in xrange(cor + 1, cnr + 1): |
1992 for i in xrange(cor + 1, cnr + 1): |
1988 self.hook("incoming", node=hex(self.changelog.node(i)), |
1993 self.hook("incoming", node=hex(self.changelog.node(i)), |