Commits

ZyX_I  committed 3823d95

Fixed errors causing grep tests to fail with non-python driver:
status(...) outputted files like `../../testrepo/chgrepo.zsh' when it was passed last optional argument (files list)
Missing space between pattern and file(s) arguments
Made both versions of grep() use revision numbers instead of hashes: it is faster, especially for non-python driver

  • Participants
  • Parent commits 97fcff2

Comments (0)

Files changed (3)

File plugin/aurum/drivers/mercurial.vim

         endif
     endif
     let slines=s:F.hg(a:repo, cmd, 0, 'stat')[:-2]
+    if !empty(filter(copy(slines), '!has_key(s:hgstatchars, v:val[0])'))
+        call s:_f.throw('statfail', a:repo.path, join(slines, "\n"))
+    endif
     let r=deepcopy(s:initstatdct)
-    for line in slines
-        let r[s:hgstatchars[line[0]]]+=[line[2:]]
-    endfor
+    call map(copy(slines), 'add(r[s:hgstatchars[v:val[0]]], v:val[2:])')
+    if a:0>2
+        call map(r, 'map(v:val, "a:repo.functions.reltorepo(a:repo, v:val)")')
+    endif
     if reverse
         let [r.deleted, r.unknown]=[r.unknown, r.deleted]
         let [r.added,   r.removed]=[r.removed, r.added  ]
         else
             if prevempty
                 while prevempty
-                    echom ' '
+                    echomsg ' '
                     let prevempty-=1
                 endwhile
             endif
-            echom line
+            echomsg line
         endif
     endfor
 endfunction
 endfunction
 "▶1 hg.grep :: repo, pattern, files, revisions, ignore_case → qflist
 " revisions :: [Either rev (rev, rev)]
+" TODO noworkfiles ?
 if s:usepythondriver "▶2
 function s:hg.grep(repo, pattern, files, revisions, ignore_case)
     let r=[]
 else "▶2
 "▶3 checknotmodifiedsince
 function s:F.checknotmodifiedsince(repo, rev, file, cache)
-    if a:cache isnot 0
-        let key=a:rev.':'.a:file
-        if has_key(a:cache, key)
-            return a:cache[key]
-        endif
+    let key=a:rev.':'.a:file
+    if has_key(a:cache, key)
+        return a:cache[key]
     endif
     let status=a:repo.functions.status(a:repo, a:rev, 0, [a:file])
-    let r=(index(status.clean, a:file)!=-1)
-    if a:cache isnot 0
-        let a:cache[key]=r
-    endif
+    let r=(!empty(status.clean) && a:file is# status.clean[0])
+    let a:cache[key]=r
     return r
 endfunction
 "▲3
     if a:ignore_case
         let cmd.='--ignore-case '
     endif
-    let cmd.='--line-number '
-    let cmd.='-- '.shellescape(a:pattern, 1).
-                \join(map(copy(a:files), 'shellescape(v:val, 1)'))
+    let cmd.='--follow --line-number '
+    let cmd.='-- '.join(map(copy([a:pattern]+a:files), 'shellescape(v:val, 1)'))
     let lines=s:F.hg(a:repo, cmd, 1, 0)
     if v:shell_error
         if lines ==# ['']

File python/aurum.py

         pass
 
 grepre=re.compile('^(.*?):(0|[1-9]\d*):([1-9]\d*):(.*)$')
-def grep(path, pattern, files, revisions=[], ignore_case=False):
+def grep(path, pattern, files, revisions=None, ignore_case=False):
     try:
         repo=g_repo(path)
         ui=CaptureUI()
         args.extend(files)
         revisions=["..".join(rev) if type(rev) is list else rev
                                                     for rev in revisions]
+        if not revisions:
+            revisions=None
         kwargs={'rev': revisions, 'ignore_case': bool(ignore_case),
                 'line_number': True, 'follow': True}
         run_in_dir(repo.root, commands.grep, *args, **kwargs)
             if not m:
                 continue
             (file, rev, lnum, text)=m.groups()
-            rev=repo[int(rev)].hex()
             if check_not_modified_since(rev, file):
                 file=os.path.join(repo.root, file)
             else:

File test/grep.ok

 hglines.lst|39| hg commit -A -m 'Added ignored10.lst' \
 hglines.lst|40| hg commit -A -m 'Added .hgignore' \
 {{{1 A\b revrange 2 10
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|4| local A='A <a@example.com>'
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|13| hg commit -A -m 'Added «createrepo.zsh»' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|14| --date '1999-01-02 5:20' --user $A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|16| hg commit -A -m 'Renamed «createrepo.zsh» to «crepo.zsh»' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|17| --date '2000-01-05 7:30' --user $A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|22| hg commit -A -m 'Renamed «crepo.zsh» to «chgrepo.zsh»' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|26| hg commit -A -m 'Added «hglines.lst» and «datelines.lst»' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|27| --date '2000-05-10 4:23' --user $A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|28| hg branch A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|30| hg commit -A -m 'Added dlines.lst' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|34| hg commit -A -m 'Added alines.lst' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|35| --date '2000-11-02 5:44' --user $A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|38| hg commit -A -m 'Added ablines.lst' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|48| hg commit -A -m 'Added blines.lst' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|49| --date '2001-02-01 05:18' --user $A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|51| --date '2001-02-01 05:19' --user $A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|54| hg commit -A -m 'Added clines.lst' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|58| hg update A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|69| hg merge -r A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|70| hg commit -m 'Merge from A' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|73| hg commit -A -m 'Copied “hglines.lst” to “hglines2.lst”' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|74| --date '2002-02-10 05:00' --user $A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|76| hg commit -A -m 'Added nohglines.lst' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|79| hg commit -A -m 'Added nohglinesrev.lst' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|82| hg commit -A -m 'Added ignored10.lst' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|83| --date '2002-02-11 03:15' --user $A
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|85| hg commit -A -m 'Added .hgignore' \
-aurum://file:%TMPDIR%/test/greprepo:41c3d8d71ffecac8d1d2e4ac56b8a36c038290e1:crepo.zsh|86| --date '2002-02-11 05:43' --user $A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|4| local A='A <a@example.com>'
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|13| hg commit -A -m 'Added «createrepo.zsh»' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|14| --date '1999-01-02 5:20' --user $A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|16| hg commit -A -m 'Renamed «createrepo.zsh» to «crepo.zsh»' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|17| --date '2000-01-05 7:30' --user $A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|22| hg commit -A -m 'Renamed «crepo.zsh» to «chgrepo.zsh»' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|26| hg commit -A -m 'Added «hglines.lst» and «datelines.lst»' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|27| --date '2000-05-10 4:23' --user $A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|28| hg branch A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|30| hg commit -A -m 'Added dlines.lst' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|34| hg commit -A -m 'Added alines.lst' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|35| --date '2000-11-02 5:44' --user $A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|38| hg commit -A -m 'Added ablines.lst' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|48| hg commit -A -m 'Added blines.lst' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|49| --date '2001-02-01 05:18' --user $A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|51| --date '2001-02-01 05:19' --user $A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|54| hg commit -A -m 'Added clines.lst' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|58| hg update A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|69| hg merge -r A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|70| hg commit -m 'Merge from A' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|73| hg commit -A -m 'Copied “hglines.lst” to “hglines2.lst”' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|74| --date '2002-02-10 05:00' --user $A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|76| hg commit -A -m 'Added nohglines.lst' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|79| hg commit -A -m 'Added nohglinesrev.lst' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|82| hg commit -A -m 'Added ignored10.lst' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|83| --date '2002-02-11 03:15' --user $A
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|85| hg commit -A -m 'Added .hgignore' \
+aurum://file:%TMPDIR%/test/greprepo:2:crepo.zsh|86| --date '2002-02-11 05:43' --user $A
 chgrepo.zsh|4| local A='A <a@example.com>'
 chgrepo.zsh|13| hg commit -A -m 'Added «createrepo.zsh»' \
 chgrepo.zsh|14| --date '1999-01-02 5:20' --user $A
 blines.lst|7| hg commit -A -m 'Added ablines.lst' \
 blines.lst|11| hg commit -A -m 'Added blines.lst' \
 {{{1 A\b repo ../testrepo
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|4| '>moc.elpmaxe@a< A'=A lacol
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|12| A$ resu-- '02:5 20-10-9991' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|13| A$ resu-- '03:7 50-10-0002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|19| A$ resu-- '32:4 01-50-0002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|23| A$ resu-- '44:5 20-11-0002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|29| A$ resu-- '81:50 10-20-1002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|30| A$ resu-- '91:50 10-20-1002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|38| A$ resu-- '00:50 01-20-2002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|44| A$ resu-- '51:30 11-20-2002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|46| A$ resu-- '34:50 11-20-2002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|51| cbaderongi > 'cbA' ohce    
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|4| '>moc.elpmaxe@a< A'=A lacol
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|12| A$ resu-- '02:5 20-10-9991' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|13| A$ resu-- '03:7 50-10-0002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|19| A$ resu-- '32:4 01-50-0002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|23| A$ resu-- '44:5 20-11-0002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|29| A$ resu-- '81:50 10-20-1002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|30| A$ resu-- '91:50 10-20-1002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|38| A$ resu-- '00:50 01-20-2002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|44| A$ resu-- '51:30 11-20-2002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|46| A$ resu-- '34:50 11-20-2002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|51| cbaderongi > 'cbA' ohce    
 %TMPDIR%/test/testrepo/nohglines.lst|4| local A='A <a@example.com>'
 %TMPDIR%/test/testrepo/nohglines.lst|12| --date '1999-01-02 5:20' --user $A
 %TMPDIR%/test/testrepo/nohglines.lst|13| --date '2000-01-05 7:30' --user $A
 %TMPDIR%/test/testrepo/nohglines.lst|38| --date '2002-02-10 05:00' --user $A
 %TMPDIR%/test/testrepo/nohglines.lst|44| --date '2002-02-11 03:15' --user $A
 %TMPDIR%/test/testrepo/nohglines.lst|46| --date '2002-02-11 05:43' --user $A
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|2| hg commit -A -m 'Added «createrepo.zsh»' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|4| hg commit -A -m 'Renamed «createrepo.zsh» to «crepo.zsh»' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|7| hg commit -A -m 'Renamed «crepo.zsh» to «chgrepo.zsh»' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|8| hg commit -A -m 'Added «hglines.lst» and «datelines.lst»' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|9| hg branch A
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|10| hg commit -A -m 'Added dlines.lst' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|12| hg commit -A -m 'Added alines.lst' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|14| hg commit -A -m 'Added ablines.lst' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|20| hg commit -A -m 'Added blines.lst' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|23| hg commit -A -m 'Added clines.lst' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|25| hg update A
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|33| hg merge -r A
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|34| hg commit -m 'Merge from A' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|36| hg commit -A -m 'Copied “hglines.lst” to “hglines2.lst”' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|37| hg commit -A -m 'Added nohglines.lst' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|38| hg commit -A -m 'Added nohglinesrev.lst' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|39| hg commit -A -m 'Added ignored10.lst' \
-aurum://file:%TMPDIR%/test/testrepo:5b7ed139504a773cacfda7307e92cfba9a602d7f:hglines2.lst|40| hg commit -A -m 'Added .hgignore' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|2| hg commit -A -m 'Added «createrepo.zsh»' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|4| hg commit -A -m 'Renamed «createrepo.zsh» to «crepo.zsh»' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|7| hg commit -A -m 'Renamed «crepo.zsh» to «chgrepo.zsh»' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|8| hg commit -A -m 'Added «hglines.lst» and «datelines.lst»' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|9| hg branch A
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|10| hg commit -A -m 'Added dlines.lst' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|12| hg commit -A -m 'Added alines.lst' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|14| hg commit -A -m 'Added ablines.lst' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|20| hg commit -A -m 'Added blines.lst' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|23| hg commit -A -m 'Added clines.lst' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|25| hg update A
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|33| hg merge -r A
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|34| hg commit -m 'Merge from A' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|36| hg commit -A -m 'Copied “hglines.lst” to “hglines2.lst”' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|37| hg commit -A -m 'Added nohglines.lst' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|38| hg commit -A -m 'Added nohglinesrev.lst' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|39| hg commit -A -m 'Added ignored10.lst' \
+aurum://file:%TMPDIR%/test/testrepo:18:hglines2.lst|40| hg commit -A -m 'Added .hgignore' \
 %TMPDIR%/test/testrepo/clines.lst|17| hg branch A
 %TMPDIR%/test/testrepo/clines.lst|20| hg commit -A -m 'Added ablines.lst' \
 %TMPDIR%/test/testrepo/clines.lst|21| hg commit -A -m 'Added alines.lst' \
 %TMPDIR%/test/testrepo/chgrepo.zsh|85| hg commit -A -m 'Added .hgignore' \
 %TMPDIR%/test/testrepo/chgrepo.zsh|86| --date '2002-02-11 05:43' --user $A
 {{{1 A\b files ../testrepo/nohglinesrev.lst
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|4| '>moc.elpmaxe@a< A'=A lacol
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|12| A$ resu-- '02:5 20-10-9991' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|13| A$ resu-- '03:7 50-10-0002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|19| A$ resu-- '32:4 01-50-0002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|23| A$ resu-- '44:5 20-11-0002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|29| A$ resu-- '81:50 10-20-1002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|30| A$ resu-- '91:50 10-20-1002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|38| A$ resu-- '00:50 01-20-2002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|44| A$ resu-- '51:30 11-20-2002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|46| A$ resu-- '34:50 11-20-2002' etad--        
-aurum://file:%TMPDIR%/test/testrepo:2c2d8b2b8164681fcc1ea55bf8e086f034ddc70e:nohglinesrev.lst|51| cbaderongi > 'cbA' ohce    
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|4| '>moc.elpmaxe@a< A'=A lacol
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|12| A$ resu-- '02:5 20-10-9991' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|13| A$ resu-- '03:7 50-10-0002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|19| A$ resu-- '32:4 01-50-0002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|23| A$ resu-- '44:5 20-11-0002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|29| A$ resu-- '81:50 10-20-1002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|30| A$ resu-- '91:50 10-20-1002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|38| A$ resu-- '00:50 01-20-2002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|44| A$ resu-- '51:30 11-20-2002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|46| A$ resu-- '34:50 11-20-2002' etad--        
+aurum://file:%TMPDIR%/test/testrepo:20:nohglinesrev.lst|51| cbaderongi > 'cbA' ohce    
 {{{1 A\b revision 4 files ../testrepo/*.lst
 %TMPDIR%/test/testrepo/datelines.lst|2| hg commit -A -m 'Added «createrepo.zsh»' \
 %TMPDIR%/test/testrepo/datelines.lst|4| hg commit -A -m 'Renamed «createrepo.zsh» to «crepo.zsh»' \