1. ZyX_I
  2. aurum

Commits

ZyX_I  committed 184f692

@%aurum/drivers/bazaar: Fixed rf-label() (tagging revision did not work)
tests: Added rf-branch() and rf-label() subtests to drivers-bazaar test

  • Participants
  • Parent commits 6961f06
  • Branches bzr-support

Comments (0)

Files changed (3)

File autoload/aurum/drivers/bazaar.vim

View file
  • Ignore whitespace
     if a:rev is 0
         let kwargs.delete=1
     else
-        let kwargs.revision+=[''.a:rev]
+        let kwargs.revision=''.a:rev
     endif
     return s:F.bzrm(a:repo, a:type, args, kwargs, 0,
                 \   'labelf', a:type, a:label, a:rev)

File test/drivers-bazaar.ok

  • Ignore whitespace
Binary file modified.

File test/drivers-bazaar.vim

View file
  • Ignore whitespace
         let g:r+=['  - '.key]+map(copy(files), '"     ".v:val')
     endfor
 endfunction
-cd bzrtestrepo/A
-let Arepo=aurum#repository()
-cd -
+let g:aurum_repocachetime=0
+for R in ['A', 'B', 'C']
+    cd `="bzrtestrepo/".R`
+    let {R}repo=aurum#repository()
+    cd -
+endfor
+unlet R
+unlet g:aurum_repocachetime
 call FormatRepository(Arepo)
 let Acs=Arepo.functions.getwork(Arepo)
 call FormatCS(Arepo, Acs)
 call FormatStatus(Arepo.functions.status(Arepo, 0,   '5', 0,             1, 1))
 call FormatStatus(Arepo.functions.status(Arepo, '5', '4', 0,             1, 1))
 call FormatStatus(Arepo.functions.status(Arepo, '4', 0,   ['lines.lst'], 1, 1))
-cd bzrtestrepo/B
-let Brepo=aurum#repository()
-cd -
 call FormatStatus(Brepo.functions.status(Brepo, 0, 0, 0, 1, 1))
 call Brepo.functions.commit(Brepo, 'Added added, modified and unknown',
             \                      ['added', 'modified', 'unknown'],
 call Brepo.functions.commit(Brepo, "Multiline\ncommit\ncomment")
 call FormatCS(Brepo, Brepo.functions.getwork(Brepo), ['hex', 'time', 'user',
             \                                         'parents'])
+call Brepo.functions.branch(Brepo, 'B-mod', 0)
+call Brepo.functions.label(Brepo, 'tag', 'seventh', '7', 0, 0)
+call Brepo.functions.label(Brepo, 'tag', '--force', '7', 1, 0)
+call Brepo.functions.label(Brepo, 'tag', 'rev-4',   0,   0, 0)
+call FormatRepository(Brepo)
+call FormatCS(Brepo, Brepo.functions.getcs(Brepo, '7'))
 
 call WriteFile(r)
 source addEmessages.vim