Mercurial : Don't browse latest version after a 'hg push'
the Mercurial adapter use
hg locate to get entries from a hg repository. However,
hg locate works on the working copy and so needs an updated working copy.
hg push from my local clone to the one use by redmine on a server, the working copy on the server is not updated so changesets are fetched but can't be browsed.
A call to
hg update while fetching changesets could solve this in my case because it is sort of a central repository used only for pushing pulling and backup. But if someone use redmine on the repository he is working on, an
hg update might not be the best thing to do.
Maybe there could be an option to automatically update the working copy while fetching changesets ?
#1 Updated by Pierre Paysant-Le Roux over 13 years ago
I proposed a patch (#1199) that improves the Mercurial adapter. It also permits to browse a repository independently of its local state. No need to update the working directory as suggested by Frédéric. The trick is to use the
-r tip option (
hg locate -r tip).