hg clone problem

Thomas Arendsen Hein thomas at intevation.de
Wed Aug 31 07:53:40 CDT 2005


* Michal Ostrowski <mostrows at watson.ibm.com> [20050831 13:26]:
> On Tue, 30 Aug 2005 23:23:22 -0700
> "Bryan O'Sullivan" <bos at serpentine.com> wrote:
> 
> > On Tue, 2005-08-30 at 16:18 -0400, Michal Ostrowski wrote:
> > > I've been seeing errors in trying to http-clone a repository I have:
> > 
> > Please try pulling the changes from
> > http://hg.serpentine.com/mercurial/bos and attempt the pull again.  It
> > should (I hope!) fail with a more meaningful error message.
> 
>   File "/home/mostrows/lib/python/mercurial/revlog.py", line 213, in rev
>     raise KeyError('%s: no node %s' % (self.indexfile.name, hex(node)))
> AttributeError: 'str' object has no attribute 'name'

Please apply this patch on top of bos' version and try again.

Thomas


diff -r 7414a2e71288 mercurial/revlog.py
--- a/mercurial/revlog.py	Wed Aug 31 06:22:11 2005
+++ b/mercurial/revlog.py	Wed Aug 31 14:52:32 2005
@@ -210,7 +210,7 @@
         try:
             return self.nodemap[node]
         except KeyError, inst:
-            raise KeyError('%s: no node %s' % (self.indexfile.name, hex(node)))
+            raise KeyError('%r: no node %s' % (self.indexfile, hex(node)))
     def linkrev(self, node): return self.index[self.rev(node)][3]
     def parents(self, node):
         if node == nullid: return (nullid, nullid)

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20050831/f572b383/attachment.pgp


More information about the Mercurial mailing list