Source Control and Replace All Not Working

This Forum is for General Issues about Analyzer
Post Reply
rlaiacona
Propeller Head
Posts: 16
Joined: Mon Feb 07, 2011 10:22 am
Location: Milwaukee, Wisconsin, USA
Contact:

Source Control and Replace All Not Working

Post by rlaiacona »

After using Analyzer to find some errors, and then doing a search replace in the whole project, the fixes appeared to work, but after a search for changed files, only the opened ones registered as having changes made to them. :?:

Is this a known issue?

I would think the replace all code does not compensate for source control.
--Rich Laiacona
Ken Cook Co.
Partners in Product Documentation
Nita Beck
Senior Propellus Maximus
Posts: 3667
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Source Control and Replace All Not Working

Post by Nita Beck »

Hi Rich,

I don't have an answer for you, but rather am interested in what you learn. I've not had to source control my Flare work yet, but will be doing so within the next month.

I realize you didn't get a reply here on the forums (maybe post it instead in the Source Control forum rather than the Analyzer forum?), but I'm curious what further insights / issues you continue to see. Hopefully, too, my little reply will give your post the bump it needs to get someone else's attention...
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
i-tietz
Propellus Maximus
Posts: 1219
Joined: Wed Oct 24, 2007 4:13 am
Location: Fürth, Germany

Re: Source Control and Replace All Not Working

Post by i-tietz »

Whenever I do a projectwide Find&Replace I have to check all those files out ...

This is how I do it:
1. CTRL + F
2. enter "find" text
3. enter "replace" text
4. chose "(whole project)"
5. press "Start"
6. press "Replace in All Files"
7. press "OK" (question: Do I want to leave all files open?)
8. ... ... 50-or-so files are opened and processed
9. press "OK" (question: Do I want to save and close all files?)
10. ... ... Flare checks out all files and saves and closes them => goes on at 8 ...
Inge____________________________
"I need input! - Have you got input?"
Nita Beck
Senior Propellus Maximus
Posts: 3667
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Source Control and Replace All Not Working

Post by Nita Beck »

So Inge, you are doing this in a Flare project that is under source control? Say you've checked only 10 topics out of source control. Now you do a Find-and-Replace-All operation in the whole project. Does Flare manage the check-in/check-out of all the other topics automatically as part of the Replace-All operation? I think what Rich is observing is that the change "sticks" in only the set of topics he's check out of source control, but not in the whole project. Rich, am I understanding your problem correctly?
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
i-tietz
Propellus Maximus
Posts: 1219
Joined: Wed Oct 24, 2007 4:13 am
Location: Fürth, Germany

Re: Source Control and Replace All Not Working

Post by i-tietz »

Nita Beck wrote:So Inge, you are doing this in a Flare project that is under source control? Say you've checked only 10 topics out of source control. Now you do a Find-and-Replace-All operation in the whole project. Does Flare manage the check-in/check-out of all the other topics automatically as part of the Replace-All operation?
Yep. Works like a charm (as described above).
Inge____________________________
"I need input! - Have you got input?"
Nita Beck
Senior Propellus Maximus
Posts: 3667
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Source Control and Replace All Not Working

Post by Nita Beck »

Cool... I'll be curious to see if Rich discovers something unusual about his setup that seems to conflict with Replace All.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
rlaiacona
Propeller Head
Posts: 16
Joined: Mon Feb 07, 2011 10:22 am
Location: Milwaukee, Wisconsin, USA
Contact:

Re: Source Control and Replace All Not Working

Post by rlaiacona »

The only difference in our procedure is in the OK to leaving the files open.
I chose NO because I am going through 4000+ topics and could easily open 500 of them.

I would then guess it is in the leaving open procedure that unlocks the files.
--Rich Laiacona
Ken Cook Co.
Partners in Product Documentation
i-tietz
Propellus Maximus
Posts: 1219
Joined: Wed Oct 24, 2007 4:13 am
Location: Fürth, Germany

Re: Source Control and Replace All Not Working

Post by i-tietz »

Flare opens, processes and closes files in packages of sth around 50 - don't know what influences the number of files.
Inge____________________________
"I need input! - Have you got input?"
rlaiacona
Propeller Head
Posts: 16
Joined: Mon Feb 07, 2011 10:22 am
Location: Milwaukee, Wisconsin, USA
Contact:

Re: Source Control and Replace All Not Working

Post by rlaiacona »

The opened files would be a result of the files that are getting the global change. (I would think)
This could be every topic file, depending on the global change.
--Rich Laiacona
Ken Cook Co.
Partners in Product Documentation
i-tietz
Propellus Maximus
Posts: 1219
Joined: Wed Oct 24, 2007 4:13 am
Location: Fürth, Germany

Re: Source Control and Replace All Not Working

Post by i-tietz »

Ah, yes - let me rephrase that: Don't know what influences the number of files per package ...
Of course the total number is the total numbe rof processed files.
Inge____________________________
"I need input! - Have you got input?"
rlaiacona
Propeller Head
Posts: 16
Joined: Mon Feb 07, 2011 10:22 am
Location: Milwaukee, Wisconsin, USA
Contact:

Re: Source Control and Replace All Not Working

Post by rlaiacona »

As I have been working with some global changes that affect only 11 files and I am keeping them open, it appears to be working fine.
--Rich Laiacona
Ken Cook Co.
Partners in Product Documentation
rlaiacona
Propeller Head
Posts: 16
Joined: Mon Feb 07, 2011 10:22 am
Location: Milwaukee, Wisconsin, USA
Contact:

Re: Source Control and Replace All Not Working

Post by rlaiacona »

:shock:

I did a bigger replace all and when I have "TOO MANY" files open, it asked if I wanted to save and close them before carrying on !

That's a nice feature. :D
--Rich Laiacona
Ken Cook Co.
Partners in Product Documentation
Post Reply