Commits

Christian Ebert committed 63a3ead

Compatible with Hg > 1.6.3

  • Participants
  • Parent commits a0fb43d

Comments (0)

Files changed (2)

+updatedir.diff
 # Placed by Bitbucket

File updatedir.diff

+# HG changeset patch
+# User Christian Ebert <blacktrash@gmx.net>
+# Date 1285807354 -7200
+# Node ID 70d6827d977a01f158fd44397ae9c9f37bf86202
+# Parent  1164bfd102669c42cc219818d014639132c11f17
+core: updatedir moved to cmdutil in 00658492e2aa
+
+Keep patch.updatedir for backward compatibility.
+
+diff --git a/crecord/crecord_core.py b/crecord/crecord_core.py
+--- a/crecord/crecord_core.py
++++ b/crecord/crecord_core.py
+@@ -126,7 +126,10 @@
+                                             eolmode=None)
+                     except TypeError:  # backwards compatilibity with hg 1.1
+                         patch.internalpatch(fp, ui, 1, repo.root, files=pfiles)
+-                    patch.updatedir(ui, repo, pfiles)
++                    try:
++                        cmdutil.updatedir(ui, repo, pfiles)
++                    except AttributeError:
++                        patch.updatedir(ui, repo, pfiles)
+                 except patch.PatchError, err:
+                     s = str(err)
+                     if s: