linux - List all the revisions in a mixed revision SVN working copy -
svn working copy has mixed revisions in general case. there way list revision numbers?
for example, following working copy:
file01 (revision 1) file02 (revision 2) file02.2 (revision 2) file03 (revision 3)
the list of revisions 1, 2, 3
.
svnversion
comes close, not close enough:
$ svnversion 1:3
using svn info
, awk
, sed
, this
svn info -r | awk '/revision/ {print $2;}' | sort -u
produces following if invoked in working directory root:
1 2 3
such multi-line output can further transformed single-line form using techniques bash turning multi-line string single comma-separated question. e.g.
svn info -r | awk '/revision/ {print $2;}' | sort -u | paste -s -d,
produces 1,2,3
.
Comments
Post a Comment