automatically switched to topic confusion
Chuck Tuffli
ctuffli at gmail.com
Mon Feb 1 20:26:27 UTC 2021
On Sun, Jan 31, 2021 at 8:33 PM Sushil Khanchi
<sushilkhanchi97 at gmail.com> wrote:
> Yeah, so --clear flag did its work.
> And after you did `pull -u` it updated the working directory parent to the head of descendants,
> as -u flag description says "update to new branch head if new descendants were pulled".
>
> To know what exactly happened and the reason for the new topic with a similar name, try running
> `hg obslog -r 'topic(ctuffli-doc-2)'`
> Summary: that is a new descendant with a similar topic name created by a different user.
Thank you for the explanation. So because the working directory
contained descendants of the ctuffli-doc-2 topic, the pull -u updated
the directory to the tip of ctuffli-doc-2.
Perhaps where I went wrong was thinking that since topics are similar
to branches, topic changed the working directory contents. It more
marks commits as being part of a group named topicname. To change the
working directory, I should have used update. What confused me was the
topic was on the branch and so I didn't think to update to the (same)
branch.
More information about the Mercurial
mailing list