문제

I am working with TortoiseHG on a Windows 7 system.

I was working on the default branch, and the R&D team wanted to try out a different algorithm, so I created a new branch using the answer given here, called quadraticTest.

A couple of commits were made to this branch, and the output was found unsuitable.

Now I want to go back and work on the default branch without merging changes from the quadraticTest branch.

Basically, I'm searching for the GUI equivalent of hg update default command

How do I move the Working directory back to the default branch with ToritoiseHG?

도움이 되었습니까?

해결책

If you're looking at the tree, with the graph view, find the revision you want to check out, right-click on it, and select Update...

But let's say that you're having trouble finding the commit -- maybe you have a lot of branches, and so you don't see the revision you want to check out. Turn on the Filter Toolbar (View > Filter Toolbar).

Look on the right. You'll see a dropdown that says something like ★ Show all ★. Click on that to list all your open branches. Select the branch you want to check out, and it will filter the graph view so only commits on that branch show up. Then it'll be easy to find the most recent commit on the default branch, because it'll be the top one.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top