Here's one thing that irks me with subversion: moving the contents of a child directory into the parent directory.
Let's say you have a parent and child directory of foo/bar/ and foo/ is completely empty with the exception of bar/. The normal filesystem, operations for moving the contents of bar/ into foo/ would just be a simple `mv foo/bar/* foo/; rm -rf bar`.
However, in subversion, you can't operate on files by globbing - which sorta makes sense when you consider that each file is a resource that is url mapped to something in the subversion repository. That rules out `svn mv foo/bar/* foo/`. So to actually perform this move, you have to go through this five-step process:
`svn mv foo/bar foo.new`
`svn rm foo`
`svn commit`
`svn mv foo.new foo`
`svn commit`
...and this is just the case for when foo/ only contains bar/.
New Location
My website has moved to http://www.jasonwhaley.com. Please visit there for the latest and only remain here for legacy content.
Sunday, May 4, 2008
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment