subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Bading <tbad...@web.de>
Subject Subversion 1.8 appreciation thread
Date Thu, 06 Jun 2013 11:32:23 GMT
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! ;-)


Mime
View raw message