##// END OF EJS Templates
hg tag: run tag hook just once
John Coomes -
r5801:1b230f50 default
parent child Browse files
Show More
@@ -122,7 +122,6 b' class localrepository(repo.repository):'
122 fp.write('\n')
122 fp.write('\n')
123 fp.write('%s %s\n' % (hex(node), munge and munge(name) or name))
123 fp.write('%s %s\n' % (hex(node), munge and munge(name) or name))
124 fp.close()
124 fp.close()
125 self.hook('tag', node=hex(node), tag=name, local=local)
126
125
127 prevtags = ''
126 prevtags = ''
128 if local:
127 if local:
@@ -135,6 +134,7 b' class localrepository(repo.repository):'
135
134
136 # local tags are stored in the current charset
135 # local tags are stored in the current charset
137 writetag(fp, name, None, prevtags)
136 writetag(fp, name, None, prevtags)
137 self.hook('tag', node=hex(node), tag=name, local=local)
138 return
138 return
139
139
140 if use_dirstate:
140 if use_dirstate:
@@ -40,7 +40,6 b' adding file changes'
40 added 3 changesets with 2 changes to 2 files
40 added 3 changesets with 2 changes to 2 files
41 (run 'hg update' to get a working copy)
41 (run 'hg update' to get a working copy)
42 pretag hook: HG_LOCAL=0 HG_NODE=4c52fb2e402287dd5dc052090682536c8406c321 HG_TAG=a
42 pretag hook: HG_LOCAL=0 HG_NODE=4c52fb2e402287dd5dc052090682536c8406c321 HG_TAG=a
43 tag hook: HG_LOCAL=0 HG_NODE=4c52fb2e402287dd5dc052090682536c8406c321 HG_TAG=a
44 precommit hook: HG_PARENT1=4c52fb2e402287dd5dc052090682536c8406c321
43 precommit hook: HG_PARENT1=4c52fb2e402287dd5dc052090682536c8406c321
45 pretxncommit hook: HG_NODE=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 HG_PARENT1=4c52fb2e402287dd5dc052090682536c8406c321
44 pretxncommit hook: HG_NODE=8ea2ef7ad3e8cac946c72f1e0c79d6aebc301198 HG_PARENT1=4c52fb2e402287dd5dc052090682536c8406c321
46 4:8ea2ef7ad3e8
45 4:8ea2ef7ad3e8
General Comments 0
You need to be logged in to leave comments. Login now