sapling/hgsubversion
Dan Villiom Podlaski Christiansen 4d552ebff1 replay/stupid: fix tagging on a branch renamed using a branch map
Previously, both convert_rev() functions used parentctx.extra() to
determine the branch to pass to meta.movetag(). This assumed that the
branch name stored in the changeset matches the internal branch. The
introduction of branch maps made this assumption unsafe, however: Now,
the Mercurial branch can be completely unrelated to the origin of the
changeset.

It turns out, however, that movetag() already has sufficient knowledge
to determine the branch. Given the hash of the new changeset to be
tagged, we walk its ancestors until we find an open changeset, which
we then know to be the originating branch. This assumes that there
were `few' commits made to the tag; an assumption I would consider
reasonable.
2010-07-11 11:46:19 +02:00
..
svnwrap svncommands: fix layering violation & tweak error messages. 2010-05-14 20:22:32 +02:00
__init__.py svnrepo: support new discovery module introduced in 8bff0f5944ea 2010-06-12 20:55:23 -05:00
editor.py editor: convert two assertions in apply_textdelta() into raising an IOError 2010-07-08 21:46:54 +02:00
maps.py maps: don't set the `seen' attribute in TagMap.__init__(). 2010-06-23 11:37:03 +02:00
pushmod.py isolate all imports of Subversion modules in svnwrap. 2010-03-31 17:51:09 +02:00
replay.py replay/stupid: fix tagging on a branch renamed using a branch map 2010-07-11 11:46:19 +02:00
stupid.py replay/stupid: fix tagging on a branch renamed using a branch map 2010-07-11 11:46:19 +02:00
svncommands.py svncommands: add two missing imports 2010-05-15 20:33:05 +02:00
svnexternals.py svnexternals: display svn commands output with --verbose 2009-07-18 20:44:33 -05:00
svnmeta.py replay/stupid: fix tagging on a branch renamed using a branch map 2010-07-11 11:46:19 +02:00
svnrepo.py svnrepo: fix issue 187: ignore pushable bookmarks in hg 1.6 2010-07-04 18:21:20 +01:00
util.py wrappers: cope with remoteui move to hg (hg cset 1d4f3581cbe5) 2010-06-13 00:10:53 -05:00
wrappers.py push: return reasonable status codes to the end user 2010-06-27 21:18:47 -05:00