Hi *,

I'm currently checking out (no pun intended) Subversion 1.8 RC2 and thought a "Subversion 1.8 goodies" thread might be fun. Here we go...

Goodie #1:

Are you multitasking all day long?
Are you tired of remembering all those fancy changelist names you came up with to keep the chaos in check?
Well, fret no more. Let your tab key do the thinking!

Simply create a shell script called svn-changelists with this content:

#!/bin/bash
dir=$PWD
while [[ ${#dir} != 0 ]]; do
  if [[ -r $dir/.svn/wc.db ]]; then
    sqlite3 $dir/.svn/wc.db 'select distinct(changelist) from actual_node;'
    break;
  fi
  dir=${dir%/*}
done

Now use it in your favority shell's completion feature. I'm using good-ol' tcsh, so that's

complete svn 'n@--changelist@`svn-changelists`@' [...]

Conclusion:
SQLite rulz! ;-)

Reply via email to