From 637aa1f61036173b26bb12253e35dbe9a8172bb8 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Sun, 10 May 2009 01:45:57 -0400 Subject: [PATCH] created abstract base class vc-diff; refactored svn-diff --HG-- branch : pmacs2 --- .hgignore | 5 +++ method/svn.py | 87 +++------------------------------------------------ method/vc.py | 48 ++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 83 deletions(-) create mode 100644 .hgignore create mode 100644 method/vc.py diff --git a/.hgignore b/.hgignore new file mode 100644 index 0000000..1e35cc5 --- /dev/null +++ b/.hgignore @@ -0,0 +1,5 @@ +# use glob syntax. +syntax: glob +*.pyc +*.pyo +*~ diff --git a/method/svn.py b/method/svn.py index 5af3c55..1399d5f 100644 --- a/method/svn.py +++ b/method/svn.py @@ -4,6 +4,7 @@ from subprocess import Popen, PIPE, STDOUT import buffer, default, dirutil, lex, regex, util, window from point import Point import buffer.color +from method.vc import VcBlame from method import Method, Argument @@ -256,91 +257,11 @@ class SvnDiff3(Method): else: w.set_error("No difference found") -class SvnBlame(Method): +class SvnBlame(VcBlame): '''show blame output for the current version in SVN''' line_re = re.compile('^ *(?P\d+) *(?P[a-zA-Z0-9_]+) *(?P[-0-9]+) *(?P