Return to Video

Making changes to that patch file (http://codefirefox.com)

  • 0:00 - 0:03
    So assume we have a patch file that fixes some whitespace.
  • 0:03 - 0:09
    You can see on line 18 and 19 here, it fixes the whitespace problem.
  • 0:09 - 0:13
    But then we notice on line 27 there's a similar problem that we missed.
  • 0:13 - 0:19
    So the first thing we want to do to get that new change inside the patch, is to go modify the file in question.
  • 0:19 - 0:33
    And we'll see on line 65, that's where the extra whitespace is again.
  • 0:33 - 0:36
    We'll just fix that problem, we'll save it, we'll quit.
  • 0:36 - 0:41
    And then we could use hg qnew here like we did in the last video,
  • 0:41 - 0:44
    but the problem with that is that it's going to create a second patch file.
  • 0:44 - 0:49
    What we really wanted to do is get the change inside the same patch file.
  • 0:49 - 0:53
    So to do that, it's pretty easy, all you have to do is type hg qref.
  • 0:53 - 0:56
    And that's for qrefresh.
  • 0:56 - 1:00
    And wait a couple of seconds.
  • 1:00 - 1:05
    And then we're just going to go open up that patch file again.
  • 1:05 - 1:11
    And you can see down here, it has the extra fix in it.
  • 1:11 - 1:14
    And that's all.
Title:
Making changes to that patch file (http://codefirefox.com)
Description:

Making changes to a patch for Firefox development
http://codefirefox.com

more » « less
Video Language:
English
Duration:
01:15

English subtitles

Revisions