changeset 72c3f3e914c1 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=72c3f3e914c1
description:
        Fix style hook for Mercurial >= 1.1

diffstat:

1 file changed, 6 insertions(+), 1 deletion(-)
util/style.py |    7 ++++++-

diffs (17 lines):

diff -r 3d417492668d -r 72c3f3e914c1 util/style.py
--- a/util/style.py     Sun Jan 11 22:45:03 2009 -0800
+++ b/util/style.py     Tue Jan 13 00:14:04 2009 -0500
@@ -304,7 +304,12 @@
             if prompt(fname):
                 return True
 
-    wctx = repo.workingctx()
+    try:
+        wctx = repo.workingctx()
+    except:
+        from mercurial import context
+        wctx = context.workingctx(repo)
+
     for fname in modified:
         if skip(fname):
             continue
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to