Want to keep files in Repository , without them being actively versioned

35 views
Skip to first unread message

Vivek Kataria

unread,
Apr 24, 2018, 4:15:22 AM4/24/18
to TortoiseSVN

HI  All

When I created the repository I want to keep few IDE related files in Repository , so that a new checkout has complete working folder .  But do not really need to update or modify them with further development , hence I wont mind if they are unversioned .
But if I unversion the files/ folder they get deleted from repository as well .

Is there a way to keep these files in repository ( synonymous to backup) , but  unversioned or ignored by default from daily updates and commits 

Regards
Vivek Kataria

Stefan

unread,
Apr 24, 2018, 10:26:45 AM4/24/18
to torto...@googlegroups.com
Hi Vivek,
In the TSVN commit dialog you can right click these files and put them
onto the "ignore-on-commit" changelist. These files will then be put in
a separate area at the end of the list of files in the commit dialog and
won't be automatically selected to get committed.
Does this solve your issue?

Regards,
Stefan

Vivek Kataria

unread,
Apr 25, 2018, 8:27:25 PM4/25/18
to TortoiseSVN
Thanks For the reply Stefan

If I i use "ignore on commit"  would that setting be carried over to all users checking out from this repository . My problem is  other users committing into that folder when its not required . These files were there for them to have a start point . 

Thanks 

Weston Norris

unread,
Apr 25, 2018, 10:12:21 PM4/25/18
to TortoiseSVN
Vivek, 

If these files are meant to be a starting point for other projects, first I would say to make sure that the other persons using them know this, and to have them either Export or SVN-copy (branch) them instead of checking them out, depending on your needs. 

If explaining this or training or whatever the case may be isn't enough, another option might be hook scripts. 

I do not know how to set them up myself, but my workplace has a server side hook script set up to deny any commits to items in "tags" folders. It is also set up to allow a very small white-list of "super" users to override the denial, if they put a key phrase into the commit log message. I would imagine that such a method could be configured to what you need. 

 - Weston

Stefan Hett

unread,
Apr 26, 2018, 6:53:23 AM4/26/18
to torto...@googlegroups.com
Hi Vivek,

On 4/26/2018 2:27 AM, Vivek Kataria via TortoiseSVN wrote:
> Thanks For the reply Stefan
>
> If I i use "ignore on commit"  would that setting be carried over to
> all users checking out from this repository . My problem is  other
> users committing into that folder when its not required . These files
> were there for them to have a start point .
> [...]
No. Changelists are local to a working copy. Each user would have to add
the file to his own changelist.
To prevent accidental commits to these files you could lock the file
(TSVN -> Get lock...). It's nothing I'd usually recommend, but maybe
this does the trick for you then?

Regards,
Stefan
Reply all
Reply to author
Forward
0 new messages