Tip:
Highlight text to annotate it
X
Mercurial patch queues allow you to manage one or more patches.
You only need to know a few different commands to understand patch queues, and those are:
hg qpop, hg qpush, hg qapplied, and hg qseries.
So I'm going to start with an initial state of only having one patch created.
And that's bug123456_whitespacefixes.diff
And I'm going to do hg qseries to start.
This is going to show that there's one patch, and it's bug123456_whitespaces.diff
and notice that it shows up in a different color.
And that's because it is currently applied.
You can unapply that patch by doing hg qpop
And then I type hg qseries again.
And it still shows that the same patch is inside your patch queue.
Just that it's unapplied at this instant.
So I can do hg qpush again, and that will reapply the patch again.
hg qseries, and it shows it applied again.
If you don't want to use the color.
Another way to do it is to use hg qapplied.
That will show you which patches are currently applied.
So you can see that whitespacefixes is applied
But as soon as I do an hg qpop
Now hg qapplied shows nothing.
When I do hg qpush again, it reapplies the fix in that patch to the source code.
And then I type hg qapplied, and it's there again.
So this is a way to basically change your source code to include changes in a patch file or not.
And that's all for this video.
Subtitles by the Amara.org community