# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1252856931 -32400
# Node ID e5f455c10d009675c075a1b4d184e33211c33d30
# Parent  7daa59c89e727e73aa47e217039e33184ad4ce76
changeset: fix the way to strip the path prefix

diff --git a/hggtk/changeset.py b/hggtk/changeset.py
--- a/hggtk/changeset.py
+++ b/hggtk/changeset.py
@@ -142,6 +142,8 @@
         try:
             def get_path(a, b):
                 rawpath = b != '/dev/null' and b or a
+                if not rawpath.startswith(('a/', 'b/')):
+                    return rawpath
                 return rawpath.split('/', 1)[-1]
             hunks = []
             map = {'MODIFY': 'M', 'ADD': 'A', 'DELETE': 'R',

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to