~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_patches.py

  • Committer: Kit Randel
  • Date: 2014-12-12 03:59:25 UTC
  • mto: This revision was merged to the branch mainline in revision 6602.
  • Revision ID: kit.randel@canonical.com-20141212035925-5nwyz5det0wtecce
fixed dirty_head logic in iter_file_patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
                 "=== modified file 'orig/commands.py'\n",
69
69
                 "--- orig/commands.py\n",
70
70
                 "+++ mod/dommands.py\n"]
71
 
        patches = parse_patches(lines.__iter__(), allow_dirty=True,
72
 
                                keep_dirty=True)
 
71
        patches = parse_patches(
 
72
            lines.__iter__(), allow_dirty=True, keep_dirty=True)
73
73
        self.assertEqual(patches[0]['dirty_head'],
74
74
                         ["=== added directory 'foo/bar'\n",
75
75
                          "=== modified file 'orig/commands.py'\n"])