##// END OF EJS Templates
merge with crew-stable
Alexis S. L. Carvalho -
r4497:22ebd6ee merge default
parent child Browse files
Show More
@@ -136,7 +136,7 b' class bisect(object):'
136 return d
136 return d
137
137
138 if head in stop:
138 if head in stop:
139 raise util.Abort(_("Unconsistent state, %s:%s is good and bad")
139 raise util.Abort(_("Inconsistent state, %s:%s is good and bad")
140 % (cl.rev(head), hg.short(head)))
140 % (cl.rev(head), hg.short(head)))
141 n_child = num_children(head)
141 n_child = num_children(head)
142 for i in xrange(cl.rev(head)+1):
142 for i in xrange(cl.rev(head)+1):
@@ -12,6 +12,7 b' import os, sys'
12 from mercurial import util
12 from mercurial import util
13
13
14 def launch(application):
14 def launch(application):
15 util.set_binary(sys.stdin)
15 util.set_binary(sys.stdout)
16 util.set_binary(sys.stdout)
16
17
17 environ = dict(os.environ.items())
18 environ = dict(os.environ.items())
@@ -303,7 +303,7 b' class localrepository(repo.repository):'
303 if bn != an and an in bh and \
303 if bn != an and an in bh and \
304 (bn not in ah or len(bh) > len(ah)):
304 (bn not in ah or len(bh) > len(ah)):
305 an = bn
305 an = bn
306 ah.append([n for n in bh if n not in ah])
306 ah.extend([n for n in bh if n not in ah])
307 globaltags[k] = an, ah
307 globaltags[k] = an, ah
308
308
309 # read the tags file from each head, ending with the tip
309 # read the tags file from each head, ending with the tip
@@ -347,7 +347,8 b' class revlog(object):'
347 if (oldst and st.st_dev == oldst.st_dev
347 if (oldst and st.st_dev == oldst.st_dev
348 and st.st_ino == oldst.st_ino
348 and st.st_ino == oldst.st_ino
349 and st.st_mtime == oldst.st_mtime
349 and st.st_mtime == oldst.st_mtime
350 and st.st_ctime == oldst.st_ctime):
350 and st.st_ctime == oldst.st_ctime
351 and st.st_size == oldst.st_size):
351 return
352 return
352 self.indexstat = st
353 self.indexstat = st
353 if len(i) > 0:
354 if len(i) > 0:
@@ -104,4 +104,21 b" hg ci -m 'change foo' -d '1000000 0' "
104 hg tags
104 hg tags
105
105
106 hg tag -d '1000000 0' -r 3 bar # should complain
106 hg tag -d '1000000 0' -r 3 bar # should complain
107 hg tags No newline at end of file
107 hg tags
108
109 # test tag rank with 3 heads
110 cd ..
111 hg init t4
112 cd t4
113 echo foo > foo
114 hg add
115 hg ci -m 'add foo' -d '0 0' # rev 0
116 hg tag -d '0 0' bar # rev 1 bar -> 0
117 hg tag -d '0 0' -f bar # rev 2 bar -> 1
118 hg up -qC 0
119 hg tag -d '0 0' -fr 2 bar # rev 3 bar -> 2
120 hg tags
121 hg up -qC 0
122 hg tag -d '0 0' -m 'retag rev 0' -fr 0 bar # rev 4 bar -> 0, but bar stays at 2
123 echo % bar should still point to rev 2
124 hg tags
@@ -57,3 +57,9 b' bar 0:b40'
57 abort: a tag named bar already exists (use -f to force)
57 abort: a tag named bar already exists (use -f to force)
58 tip 6:b5ff9d142648
58 tip 6:b5ff9d142648
59 bar 0:b409d9da318e
59 bar 0:b409d9da318e
60 adding foo
61 tip 3:ca8479b4351c
62 bar 2:72b852876a42
63 % bar should still point to rev 2
64 tip 4:40af5d225513
65 bar 2:72b852876a42
General Comments 0
You need to be logged in to leave comments. Login now