It does not recognize that files has been modified?

40 views
Skip to first unread message

Calli

unread,
Sep 26, 2023, 8:19:47 AM9/26/23
to TortoiseSVN
Hi,
its my first usage of TortoiseSVN  (1.14.5, Build 29465 - 64 Bit , 2022/09/24 08:31:31)
I have ‪C:\Users\cas\Documents\MT5\ETE_Repos and ‪C:\Users\cas\Documents\MT5\ETE_Reposwc (with a green tick), I have successfully imported my project folder C:\Users\cas\Documents\MT5\T5\MQL5\Experts\ETE.
Now I have been working on three files (new length and new modif. date) but TortoiseSVN does not recognises it :(
None of the files in the project folder is marked by a little symbol (changed, unchanged, ...).

Daniel Sahlberg

unread,
Sep 26, 2023, 8:39:14 AM9/26/23
to TortoiseSVN
In which folder have you been working on these three files? Is that folder a working copy?

I'm guessing you have only imported the project to ETE_reposwc but you are working in ...\Experts\ETE and have not checked out a working copy there.

Kind regards,
Daniel

lorenz

unread,
Sep 26, 2023, 9:34:17 AM9/26/23
to torto...@googlegroups.com
Calli über TortoiseSVN wrote:

>Hi,
>its my first usage of TortoiseSVN (1.14.5, Build 29465 - 64 Bit ,
>2022/09/24 08:31:31)
>I have ?C:\Users\cas\Documents\MT5\ETE_Repos and
>?C:\Users\cas\Documents\MT5\ETE_Reposwc (with a green tick), I have
>successfully imported my project folder
>C:\Users\cas\Documents\MT5\T5\MQL5\Experts\ETE.
>Now I have been working on three files (new length and new modif. date) but
>TortoiseSVN does not recognises it :(
>None of the files in the project folder is marked by a little symbol
>(changed, unchanged, ...).

sound like you did not check out after the import.

Import only does what the name says, it imports the folder into the
repository. It does not automatically convert the folder into a
working copy.

Normally, after the import, you just checkout into the folder.
But you have already made changes.
So better make a copy before checking out.

Or check out into a new folder and copy the changed files into it
afterwards.
--

Lorenz

Calli

unread,
Sep 26, 2023, 11:17:41 AM9/26/23
to TortoiseSVN
I did what the doc told me to do - I think:
1) I created an empty folder: ‪C:\Users\cas\Documents\MT5\ETE_Repos.
2) Then I imported my project folder: C:\Users\cas\Documents\MT5\T-LINKS\Experts\ETE\
3) Then I did the checkout.
Previously I had then 3 folder:
-  my project: .. \Experts\ETE\
- the repos: .. \MT5\ETE_Repos
- and this: ..\MT5\ETE_Reposwc (prev with the files from ETE).

Now after de- and re-installing TortoiseSVNI and after the same procedure as before (I think) have now 4(?) folders:
-  my project: .. \Experts\ETE\  (with my project files and not labeled like: chg, unchg, ...)
-  the repos: .. \MT5\ETE_Repos (with the folders conf, db, hooks, .. )
-  this: ..\MT5\ETE_Reposwc ( with the folders branches, tags & trunc, all with green ticks and none of my files)
-  and this (new): \Experts\ETE\ETE_Repos with all my files, and the folders branches, ETE_Repo, tags, trunk and all is ticked in green.

I am quite confused. I expect to be able to continue working in my project directory but it seems to me that this is exactly what TortoiseSVN is not interested in?

Daniel Sahlberg

unread,
Sep 26, 2023, 11:39:27 AM9/26/23
to TortoiseSVN
tisdag 26 september 2023 kl. 17:17:41 UTC+2 skrev Calli:
I did what the doc told me to do - I think:
1) I created an empty folder: ‪C:\Users\cas\Documents\MT5\ETE_Repos.
2) Then I imported my project folder: C:\Users\cas\Documents\MT5\T-LINKS\Experts\ETE\
3) Then I did the checkout.
Previously I had then 3 folder:
-  my project: .. \Experts\ETE\
- the repos: .. \MT5\ETE_Repos
- and this: ..\MT5\ETE_Reposwc (prev with the files from ETE).

Now after de- and re-installing TortoiseSVNI and after the same procedure as before (I think) have now 4(?) folders:
-  my project: .. \Experts\ETE\  (with my project files and not labeled like: chg, unchg, ...)
-  the repos: .. \MT5\ETE_Repos (with the folders conf, db, hooks, .. )
-  this: ..\MT5\ETE_Reposwc ( with the folders branches, tags & trunc, all with green ticks and none of my files)
-  and this (new): \Experts\ETE\ETE_Repos with all my files, and the folders branches, ETE_Repo, tags, trunk and all is ticked in green.

I am quite confused. I expect to be able to continue working in my project directory but it seems to me that this is exactly what TortoiseSVN is not interested in?

You should work in the "working copy", ie where you did the checkout. It sounds that you checked out to \Experts\ETE\ETE_Repos. The checkout dialog adds the repository name (except some well known repository paths like trunk) to the "Checkout directory" if you try to checkout to an existing directory.

You probably wanted to check out to \Experts\ETE (and you probably want to check out only /trunk, not the repository root).

Kind regards,
Daniel

Calli

unread,
Sep 26, 2023, 12:52:20 PM9/26/23
to TortoiseSVN
I think I got it - thanks to all! I assumed that I could go on working in my original project folder but I have to work in the working directory - right?
Last question what happens with my original project folder \ETE? It won't be touched and changed and updated by TortoiseSV - correct?

Daniel Sahlberg

unread,
Sep 27, 2023, 2:47:20 AM9/27/23
to TortoiseSVN
tisdag 26 september 2023 kl. 18:52:20 UTC+2 skrev Calli:
I think I got it - thanks to all! I assumed that I could go on working in my original project folder but I have to work in the working directory - right?
Last question what happens with my original project folder \ETE? It won't be touched and changed and updated by TortoiseSV - correct?

You have to work in a working copy. If you prefer to work in your original project folder, you should be able to checkout to that folder (turning it into a working copy) and Subversion will pick up your existing file and make them "versioned". Make sure to checkout the correct URL, ie if you have the standard /branches, /tags, /trunk structure you should probably checkout [repository]\trunk.

When doing this the first time, it is probably a good idea to have a backup if you checkout  the wrong folder. Subversion should not overwrite existing files (they will turn up as modified) but will add any new files from the repository.

Kind regards,
Daniel

Calli

unread,
Sep 27, 2023, 8:20:42 AM9/27/23
to TortoiseSVN
ahhh - my confusion is getting worse :(
I now have my working directory \ETE - Dev\ where I work. Then both the directory and in there the individual files get the red exclamation mark.
And now I'm not supposed to commit on the working directory? Instead in \trunk, which is (in \ETE - Dev\) empty (despite(?) 2- 3 times commits already) and has the green check mark?

Daniel Sahlberg

unread,
Sep 27, 2023, 8:56:42 AM9/27/23
to TortoiseSVN
onsdag 27 september 2023 kl. 14:20:42 UTC+2 skrev Calli:
ahhh - my confusion is getting worse :(
I now have my working directory \ETE - Dev\ where I work. Then both the directory and in there the individual files get the red exclamation mark.
And now I'm not supposed to commit on the working directory? Instead in \trunk, which is (in \ETE - Dev\) empty (despite(?) 2- 3 times commits already) and has the green check mark?

I think you should read the first few chapters of the Subversion book https://svnbook.red-bean.com/. It will explain a lot of the ideas behind Subversion and the different concepts. It sounds like you have checked out the root of the repository instead of checking out the subdirectory "/trunk". In Subversion the trunk, any branches and tags are just different directories with certain names, compared to for example Git where a branch is a "view" of the repository.

A red exclaimation mark is a modified file which is exactly what you expect after making changes. These should (probably..?) be committed, but you of course check this in the commit dialog before you actually commit.

Kind regards
Daniel


Reply all
Reply to author
Forward
0 new messages