bug in commands.py:revert()?

Bryan O'Sullivan bos at serpentine.com
Thu Sep 1 12:15:56 CDT 2005


On Thu, 2005-09-01 at 13:07 -0400, Dan Christensen wrote:

> Why not just:
> 
>     def trimpath(p):
>         p = os.path.realpath(p)
>         if p.startswith(root):
>             return p[len(root):]
>         return None  [or p?]  [or raise error?]

The more correct answer would be to switch revert over to using the walk
code, as all of its name handling is redundant and should die.

	<b



More information about the Mercurial mailing list