##// END OF EJS Templates
hg tag: run tag hook just once
John Coomes -
r5747:f75ca1b0 default
parent child Browse files
Show More
@@ -123,7 +123,6 b' class localrepository(repo.repository):'
123 fp.write('\n')
123 fp.write('\n')
124 fp.write('%s %s\n' % (hex(node), munge and munge(name) or name))
124 fp.write('%s %s\n' % (hex(node), munge and munge(name) or name))
125 fp.close()
125 fp.close()
126 self.hook('tag', node=hex(node), tag=name, local=local)
127
126
128 prevtags = ''
127 prevtags = ''
129 if local:
128 if local:
@@ -136,6 +135,7 b' class localrepository(repo.repository):'
136
135
137 # local tags are stored in the current charset
136 # local tags are stored in the current charset
138 writetag(fp, name, None, prevtags)
137 writetag(fp, name, None, prevtags)
138 self.hook('tag', node=hex(node), tag=name, local=local)
139 return
139 return
140
140
141 if use_dirstate:
141 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