Quoting Garrett <garrett_hcg@...>:
> ahhh, however if the build fails I now have a file with both changes in
> it, and I can't go back to a version of the file before I did an update=
.
> Unless I keep a second set of directories.
> Is this the way thing are normally done?
> as it stands now, if I need to do an update, I go into history, get the
> most recent check in, and then do a diff. If I just do a diff, it diffs
> between my current file, and the version I checked out from, not the
> most recent.
>
> so if I have 1.3, and another developer does a commit, making the file
> version 1.4. Now I got to the menu and chose 'CVS Diff' it will diff th=
e
> file I am working on with version 1.3 NOT 1.4...which is what I want.
>
First, if you you and another developer are working on the same functiona=
lity
(or related functionality) in the same file at the same time, you have a
communication problem. Fix that before addressing anything else.
However, given that mistakes do happen sometimes, there are a couple ways=
to
approach this.
1. The paranoid option. Grab a clean copy off the HEAD of the file(s) i=
n
question. Your modified file will be copied to a new file with same name
prefixed by ".#" and suffixed by ".[cvs version of the file you were edit=
ing]".
Now you will have both the latest version and your editied copy locally =
making
it easy to do a diff between the two without polluting your changes with
someone elses.
2. The more standard option. Just update and do the merge like normal an=
d then
do a diff against the head. That will show your changes, combined with t=
he
merged changes, against the latest version. This is usually what you wan=
t
unless you are being really paranoid (which, I'll admit, happens to me fr=
om
time to time).
> I don't mean to be difficult, I just get the feeling I am not using the
> tool correctly.
>
You're not being difficult. Just trying to get clarification which is pe=
rfectly
legitimate. I hope I provided it.
Jake
> Garrett
>
> Jacob Kjome wrote:
>
> >Quoting Garrett <garrett_hcg@...>:
> >
> >
> >
> >>But I could do an update, get all the new stuff then commit.
> >>but if the person who committed before me removed a variable I use, t=
he
> >>build would be broke.
> >>which is why I would rather it said "whoa.. someone changed this sinc=
e
> >>you checked it out. would you like to see a diff?"
> >>I was just wondering if there was a way to do that.
> >>
> >>
> >>
> >
> >That's why you update, merge, and then do a test build to make sure
> everything
> >works before you check in.
> >
> >Jake
> >
> >
> >
> >
> >>phpWalter wrote:
> >>
> >>
> >>
> >>>"Garrett" asked:
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>when I go to commit my change, I want tortoise to let me know if so=
meone
> >>>>else has done a commit since the last time I retrieve the file from=
the
> >>>>repository. Is this possible?
> >>>>
> >>>>
> >>>>
> >>>>
> >>>well, no.
> >>>
> >>>"That's the way we've always done it"
> >>>
> >>>Seems that the guys who wrote CVS, way back when, decided that a dev=
elper
> >>>should UPDATE *before* COMMIT
> >>>
> >>>You must understand, unix developers are a very "tradition bound" lo=
t.
> >>>
> >>>Anyway, you just need to get in the habit of doing an UPDATE than a =
COMMIT
> >>>and CVS will work as "designed".
> >>>
> >>>Walter
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>--
> >>No virus found in this outgoing message.
> >>Checked by AVG Anti-Virus.
> >>Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>SF email is sponsored by - The IT Product Guide
> >>Read honest & candid reviews on hundreds of IT Products from real use=
rs.
> >>Discover which products truly live up to the hype. Start reading now.
> >>http://productguide.itmanagersjournal.com/
> >>_______________________________________________
> >>tortoisecvs-users mailing list
> >>tortoisecvs-users@...
> >>https://lists.sourceforge.net/lists/listinfo/tortoisecvs-users
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.298 / Virus Database: 265.6.5 - Release Date: 12/26/2004
>
|