test-subrepo-git.t failed

Gilles Moris gilles.moris at free.fr
Sun Feb 20 11:13:11 CST 2011


I am running git 1.7.3 and I am based on current crew repo.
To fix this one, I will need some hints as I know very little about subrepos
and git. BTW, does anybody else reproduce it?

Thx.
Gilles.

ERROR: test-subrepo-git.t output changed
--- test-subrepo-git.t
+++ test-subrepo-git.t.err
@@ -263,13 +263,14 @@
   $ hg pull -q
   $ hg archive --subrepos -r 5 ../archive 2>/dev/null
   pulling subrepo s
+  [1]
   $ cd ../archive
   $ cat s/f
-  f
+  cat: s/f: No such file or directory
+  [1]
   $ cat s/g
-  g
-  gg
-  ggg
+  cat: s/g: No such file or directory
+  [1]

 create nested repo

@@ -301,9 +302,53 @@
 nested archive

   $ hg archive --subrepos ../narchive
+  ** unknown exception encountered, please report by visiting
+  **  http://mercurial.selenic.com/wiki/BugTracker
+  ** Python 2.5.1 (r251:54863, Jul 10 2008, 17:25:56) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]
+  ** Mercurial Distributed SCM (version 1.7.5+86-9cace2bd2065)
+  ** Extensions loaded:
+  Traceback (most recent call last):
+    File "/tmp/hgtests._BHcmB/install/bin/hg", line 38, in <module>
+      mercurial.dispatch.run()
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/dispatch.py", line 16, in run
+      sys.exit(dispatch(sys.argv[1:]))
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/dispatch.py", line 36, in dispatch
+      return _runcatch(u, args)
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/dispatch.py", line 58, in _runcatch
+      return _dispatch(ui, args)
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/dispatch.py", line 599, in _dispatch
+      cmdpats, cmdoptions)
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/dispatch.py", line 406, in runcommand
+      ret = _runcommand(ui, options, cmd, d)
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/dispatch.py", line 653, in _runcommand
+      return checkargs()
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/dispatch.py", line 607, in checkargs
+      return cmdfunc()
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/dispatch.py", line 596, in <lambda>
+      d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/util.py", line 429, in check
+      return func(*args, **kwargs)
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/commands.py", line 202, in archive
+      matchfn, prefix, subrepos=opts.get('subrepos'))
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/archival.py", line 282, in archive
+      sub.archive(repo.ui, archiver, prefix)
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/subrepo.py", line 405, in archive
+      s.archive(ui, archiver, os.path.join(prefix, self._path))
+    File "/tmp/hgtests._BHcmB/install/lib/python/mercurial/subrepo.py", line 953, in archive
+      tar = tarfile.open(fileobj=tarstream, mode='r|')
+    File "/usr/lib64/python2.5/tarfile.py", line 1168, in open
+      _Stream(name, filemode, comptype, fileobj, bufsize))
+    File "/usr/lib64/python2.5/tarfile.py", line 1047, in __init__
+      self.name = os.path.abspath(name)
+    File "/usr/lib64/python2.5/posixpath.py", line 402, in abspath
+      if not isabs(path):
+    File "/usr/lib64/python2.5/posixpath.py", line 49, in isabs
+      return s.startswith('/')
+  AttributeError: 'NoneType' object has no attribute 'startswith'
+  [1]
   $ ls ../narchive/inner/s | grep -v pax_global_header
-  f
-  g
+  ls: cannot access ../narchive/inner/s: No such file or directory
+  [1]

 Check hg update --clean
   $ cd $TESTTMP/ta
!
Failed test-subrepo-git.t: output changed


More information about the Mercurial-devel mailing list