Wed 20 Dec 2006
One of SVK’s features that I really like is that there aren’t any bookkeeping directories in your checkouts to get in the way of grep and find. Problem is, when you delete a checkout in the filesystem, there’s nothing to notify SVK of the deletion. It’s not a big deal, it just takes some extra space in my ~/.svk/ directory. I says to myself, I says, “it would be really nice to be able to do svk checkout --list and get a listing of all checkouts”.
Turns out, SVK beat me to the punch:
~] svk co --list Depot Path Path ================================================================ //IPC-DirQueue/local /home/collin/src/IPC-DirQueue //Net-Google/local /home/collin/src/Net-Google //SOAP-Lite-Mock/local /home/collin/src/SOAP-Lite-Mock //WWW-Google-News/local /home/collin/src/WWW-Google-News //adaptive_parsing/local /home/collin/src/adaptive_parsing //c2-ecore/local /home/collin/src/c2 //coverme/local /home/collin/src/coverme //e2-ecore/local /home/collin/src/e2-ecore //everydevel/local /home/collin/src/everydevel //functional/local /home/collin/src/functional //personal/local /home/collin/doc //python-3000/main /home/collin/src/python-3000 //python-peps/local /home/collin/src/python-peps //svk/local/main /home/collin/src/svk //svnmock/local /home/collin/src/svnmock //test_support/local /home/collin/src/test_support //typecheck/local /home/collin/src/typecheck //unittest/local /home/collin/src/unittest ~]
Beautiful.
Now all I need is an svk checkout --cleanup macro around --list that will purge SVK of any checkouts that have already been removed from the filesystem.
January 9th, 2007 at 15:45
hmm, seems like you get beaten to the punch a lot
svk co –purge
will remove all non-existant locations on disk that have checkouts registered with SVK.
However, there is a bug, if you use different drive letters on different machines like me, and you try to purge the list of locations that happens to be on a computer which does NOT have that drive letter (say you checked out something into drive F: on one machine and you’re purging a couple of days later from a machine which has no drive F:) you’ll get a hang, like I do with one of my locations, I had to hack around it to get it to purge (change drive letters, etc, etc)
work for you?
chris
January 9th, 2007 at 16:56
I had seen “svk co –purge”, but apparently the “detach” in “detach checkout directories which no longer exist” didn’t register as what I wanted. Thanks for the tip.