changeset 17550 | fc530080013b |
parent 17537 | 31f32a96e1e3 |
child 17650 | bf2eb3a126d2 |
--- a/mercurial/localrepo.py Sun Aug 26 00:27:44 2012 +0200 +++ b/mercurial/localrepo.py Sun Aug 26 00:28:56 2012 +0200 @@ -1992,7 +1992,7 @@ if nr in self: cr = self[nr] cl = self[nl] - if cl in cr.descendants(): + if bookmarks.validdest(self, cr, cl): r = remote.pushkey('bookmarks', k, nr, nl) if r: self.ui.status(_("updating bookmark %s\n") % k)