File: 05hg_change.patch

package info (click to toggle)
python-patch-ng 1.17.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 792 kB
  • sloc: python: 2,124; cpp: 1,598; xml: 38; sh: 11; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 571 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -r 603f07175741 05hg_change.from
--- a/05hg_change.from	Wed Mar 16 08:21:44 2011 +0200
+++ b/05hg_change.to	Wed Mar 16 10:08:57 2011 +0200
@@ -262,6 +262,10 @@
         pto = patch.fromfile(join(tests_dir, "data/hg-added-file.diff"))
         self.assertEqual(pto.type, patch.HG)
 
+    def test_git_changed_detected(self):
+        pto = patch.fromfile(join(tests_dir, "data/git-changed-file.diff"))
+        self.assertEqual(pto.type, patch.GIT)
+
 class TestPatchApply(unittest.TestCase):
     def setUp(self):
         self.save_cwd = os.getcwdu()