mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
4d552ebff1
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. |
||
---|---|---|
.. | ||
svnwrap | ||
__init__.py | ||
editor.py | ||
maps.py | ||
pushmod.py | ||
replay.py | ||
stupid.py | ||
svncommands.py | ||
svnexternals.py | ||
svnmeta.py | ||
svnrepo.py | ||
util.py | ||
wrappers.py |