Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-12

OT: too stupid for SVN

8 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lukas Gradl

Hi!

After beeing ill for some weeks, I'm just starting to work again.

So, first thing was to make a 'svn up' in my Lazarus-Repository (which was originally checked out by 'svn co'.

Now I've changed some files locally which I now want to set back to the versions in the repository, discarding my changes.

But here's the problem - I can't figure out how to do that. Would anyone be so kind and point me to the right direction?

regards
Lukas

-------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 --------------------------

Reply by email

Andrew Haines
to Lukas Gradl
Lukas Gradl wrote 16 lines
Hi! After beeing ill for some weeks, I'm just starting to work again. So, first thing was to make a 'svn up' in my Lazarus-Repository (which was originally checked out by 'svn co'. Now I've changed some files locally which I now want to set back to the versions in the repository, discarding my changes. But here's the problem - I can't figure out how to do that. Would anyone be so kind and point me to the right direction? regards Lukas

svn revert ./ -R

-R is for recursive

./ is the current dir. you can also use file names

svn revert ./lcl/forms.pas

Regards,

Andrew

Reply by email

Joost van der Sluis
to Lukas Gradl: Hi! After beeing ill for some weeks, I'm just starting to work again. So, first thing was…

Op zaterdag 06-12-2008 om 13:47 uur [tijdzone +0100], schreef Lukas Gradl:

Show quoted text 5 lines
Now I've changed some files locally which I now want to set back to the versions in the repository, discarding my changes. But here's the problem - I can't figure out how to do that. Would anyone be so kind and point me to the right direction?

svn revert -R .

Joost.

Reply by email

Aleksa Todorovic
to Lukas Gradl: Hi! After beeing ill for some weeks, I'm just starting to work again. So, first thing was…

Try using SVN Revert:

http://svnbook.red-bean.com/en/1.1/re25.html

Greets,
Aleksa

Lukas Gradl wrote 30 lines
Hi! After beeing ill for some weeks, I'm just starting to work again. So, first thing was to make a 'svn up' in my Lazarus-Repository (which was originally checked out by 'svn co'. Now I've changed some files locally which I now want to set back to the versions in the repository, discarding my changes. But here's the problem - I can't figure out how to do that. Would anyone be so kind and point me to the right direction? regards Lukas -- -------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 -------------------------- _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Lukas Gradl
to Lukas Gradl: Hi! After beeing ill for some weeks, I'm just starting to work again. So, first thing was…
Show quoted text 15 lines
Hi! After beeing ill for some weeks, I'm just starting to work again. So, first thing was to make a 'svn up' in my Lazarus-Repository (which was originally checked out by 'svn co'. Now I've changed some files locally which I now want to set back to the versions in the repository, discarding my changes. But here's the problem - I can't figure out how to do that. Would anyone be so kind and point me to the right direction? regards Lukas

Thanks to all that answered so fast (Andrew, Joost, Alexa,...) That's what I was looking for...

regards
Lukas

-------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 9 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 --------------------------

Reply by email

Coppola Ing. Salvatore
to Lukas Gradl
Lukas Gradl wrote 27 lines
Lukas Gradl schrieb: > Hi! > > After beeing ill for some weeks, I'm just starting to work again. > > So, first thing was to make a 'svn up' in my Lazarus-Repository (which > was originally checked out by 'svn co'. > > Now I've changed some files locally which I now want to set back to the > versions in the repository, discarding my changes. > > But here's the problem - I can't figure out how to do that. > Would anyone be so kind and point me to the right direction? > > regards > Lukas > Thanks to all that answered so fast (Andrew, Joost, Alexa,...) That's what I was looking for... regards Lukas

To avoid problems try to work in a copy extra SVN: try:
svn export -force yourExtraSVNlazarusPath

Salvatore

Reply by email

Reenen Laurie
to Coppola Ing. Salvatore

what I do (which is probably not recommended) is delete (or rename - so you don't lose your changes) the file that you changed, and then (when there exists no copy of the exact filename of svn) do svn up again.

On Sat, Dec 6, 2008 at 11:17 PM, Coppola Ing. Salvatore <

Show quoted text 42 lines
wrote: Lukas Gradl wrote: > Lukas Gradl schrieb: > >> Hi! >> >> After beeing ill for some weeks, I'm just starting to work again. >> >> So, first thing was to make a 'svn up' in my Lazarus-Repository (which >> was originally checked out by 'svn co'. >> >> Now I've changed some files locally which I now want to set back to the >> versions in the repository, discarding my changes. >> >> But here's the problem - I can't figure out how to do that. >> Would anyone be so kind and point me to the right direction? >> >> regards >> Lukas >> > > > Thanks to all that answered so fast (Andrew, Joost, Alexa,...) > That's what I was looking for... > > regards > Lukas > > To avoid problems try to work in a copy extra SVN: try: svn export -force yourExtraSVNlazarusPath Salvatore _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
o__ ,_.>/ _ (_)_\(_)_______ ...speed is good _______________ I believe five out of four people have a problem with fractions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081207/69989546/attachment.html

Reply by email

Graeme Geldenhuys
to Reenen Laurie

2008/12/7 Reenen Laurie :

what I do (which is probably not recommended) is delete (or rename - so you don't lose your changes) the file that you changed, and then (when there exists no copy of the exact filename of svn) do svn up again.

Or simply create a patch (svn diff > mychanges.patch) so you have a backup of your changes. Then revert all changes (svn revert -R .) if needed and then get a update (svn up).

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email