Extension writing questions
Dan Villiom Podlaski Christiansen
danchr at gmail.com
Sun Apr 11 08:03:04 CDT 2010
On 10 Apr 2010, at 14:56, Dave Brosius wrote:
> while (lVer <= tipVer):
> c = repo.changectx(lVer)
> files = c.files()
> for f in files:
> fc = c[f]
> if (fc):
> path = fc.path();
>
> print repo.root + "/" + path
> lVer=lVer+1
>
> I was wondering how to avoid this error.
Here's a suggestion:
>>> for f in files:
>>> if f in c:
>>> path = c[f].path()
--
Dan Villiom Podlaski Christiansen
danchr at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20100411/a0fda1af/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1943 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial/attachments/20100411/a0fda1af/attachment.bin>
More information about the Mercurial
mailing list