[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Adding forgotten files to a svn repository

From: Adam Warner <lists_at_consulting.net.nz>
Date: 2002-11-06 00:28:15 CET

Hi Colin Watson,

> Unless you've been svn:ignore-ing them as you went along, 'svn status'
> will show such files prefixed by a '?'. You can add them based on that.

Thanks everyone for the tips. Here's my shell program to add the files:

#!/usr/bin/clisp
(let ((stream (ext:run-shell-command "svn status" :output :stream)))
  (loop for line = (read-line stream nil nil) until (eq line nil) do
        (when (string= "? " (subseq line 0 7))
          (let ((output (concatenate 'string "svn add \"" (subseq line 7) "\"")))
            (write-line output)
            (ext:shell output)))))

Regards,
Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 6 00:29:03 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.