From c05127348ec9a329409a9e355ba42ab05ef26dd7 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Sat, 9 May 2009 22:57:05 -0400 Subject: [PATCH] fix issues with the last commit --HG-- branch : pmacs2 --- method/hg.py | 11 +++--- method/svn.py | 102 +++++++++++++++++++++++++++++++++++--------------- util.py | 9 ++++- 3 files changed, 85 insertions(+), 37 deletions(-) diff --git a/method/hg.py b/method/hg.py index 31586e4..acab4a1 100644 --- a/method/hg.py +++ b/method/hg.py @@ -1,16 +1,15 @@ from method import Method, Argument -class HgCommit(Method): - """Commit the current file """ - w.set_error("unimplemented") - class HgBlame(Method): """Show buffer annotated with hg metadata""" - w.set_error("unimplemented") + # use hg blame -udq FILE + def _execute(self, w, **vargs): + w.set_error("unimplemented") class HgLog(Method): """Show hg log for this buffer""" - w.set_error("unimplemented") + def _execute(self, w, **vargs): + w.set_error("unimplemented") class HgDiff(Method): """Diff the current file with the version in Mercurial""" diff --git a/method/svn.py b/method/svn.py index 3bdc0d6..5af3c55 100644 --- a/method/svn.py +++ b/method/svn.py @@ -3,6 +3,7 @@ from subprocess import Popen, PIPE, STDOUT import buffer, default, dirutil, lex, regex, util, window from point import Point +import buffer.color from method import Method, Argument @@ -257,48 +258,89 @@ class SvnDiff3(Method): class SvnBlame(Method): '''show blame output for the current version in SVN''' - line_re = re.compile('^ *(\d+) *([a-zA-Z0-9_]+) *([-0-9]+) *([:0-9]+) *(-\d{4}) *\(([^\)]+)\) (.*)\n$') + line_re = re.compile('^ *(?P\d+) *(?P[a-zA-Z0-9_]+) *(?P[-0-9]+) *(?P