Patchwork [Bug,6716] New: test-revlog: uses unsupported '--force-local' tar(1) option

login
register
mail settings
Submitter mercurial-bugs@mercurial-scm.org
Date June 13, 2022, 10:44 a.m.
Message ID <bug-6716-285@https.bz.mercurial-scm.org/>
Download mbox | patch
Permalink /patch/50995/
State New
Headers show

Comments

mercurial-bugs@mercurial-scm.org - June 13, 2022, 10:44 a.m.
https://bz.mercurial-scm.org/show_bug.cgi?id=6716

            Bug ID: 6716
           Summary: test-revlog: uses unsupported '--force-local' tar(1)
                    option
           Product: Mercurial
           Version: 6.1.3
          Hardware: All
                OS: NetBSD
            Status: UNCONFIRMED
          Severity: bug
          Priority: normal
         Component: Mercurial
          Assignee: bugzilla@mercurial-scm.org
          Reporter: tk@giga.or.at
                CC: mercurial-devel@mercurial-scm.org
    Python Version: ---

tar on NetBSD does not support --force-local, leading to:

-  $ hg cat --config rhg.cat=true -r 0 a                                        
-  hi                                                                           
-  $ cd ..                                                                      

ERROR: test-revlog.t output changed

Patch

--- /scratch/devel/py-mercurial/work/mercurial-6.1.3/tests/test-revlog.t        
+++ /scratch/devel/py-mercurial/work/mercurial-6.1.3/tests/test-revlog.t.err    
@@ -74,10 +74,13 @@                                                              
 - remove some cache files                                                      

   $ tar --force-local -xf
"$TESTDIR"/bundles/test-revlog-diff-relative-to-nullrev.tar                     
+  tar: Option --force-local is not supported                                   
+  Usage:                                                       
+    List:    tar -tf <archive-filename>                                        
+    Extract: tar -xf <archive-filename>                        
+    Create:  tar -cf <archive-filename> [filenames...]                         
+    Help:    tar --help                                                        
+  [1]                                                                          
   $ cd nullrev-diff                                                            
+  cd: can't cd to nullrev-diff                                                 
   $ hg debugdeltachain a                                                       
-      rev  chain# chainlen     prev   delta       size    rawsize  chainsize  
  ratio   lindist extradist extraratio   readsize largestblk rddensity srchunks
-        0       1        2       -1      p1         15          3         15  
5.00000        15         0    0.00000         15         15   1.00000        1