Mercurial > hg > crecord
changeset 74:70d6827d977a
core: updatedir moved to cmdutil in 00658492e2aa
Keep patch.updatedir for backward compatibility.
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Thu, 30 Sep 2010 02:42:34 +0200 |
parents | 1164bfd10266 |
children | 5549bca4dcec |
files | crecord/crecord_core.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: