Discussion:
[Bug] svn export -r <rev> of single file fails if there is a newer revision available than the exported one
Schedel, Andreas
2017-02-16 10:30:48 UTC
Permalink
SVN server: V1.8.14 (r1692801)

Hi,

When trying to export a dedicated file of a special revision by using
# svn export –r <revision> https://svn-server/trunk/myfile.txt
everything is working fine as long as no newer revision of this file is available in the repository.

If a newer revision is available on the server, the following error message is returned:
svn: E195012: Unable to find repository location for <myfile> in revision <revision>

The “@syntax” is working fine:
# svn export https://svn-server/trunk/myfile.txt@<revision<https://svnserver/trunk/myfile.txt@%3crevision>>

Is this an already known bug of SVN or perhaps an undocumented feature?

Thanks and best regards

Andreas



Harman Becker Automotive Systems GmbH
Sitz der Gesellschaft: Karlsbad
Amtsgericht Mannheim: HRB-Nr. 361395
GeschÀftsfÌhrung: Michael Mauser, Dr. Udo HÌls
Vorsitzender des Aufsichtsrats: Dr. Frank Groth

__________________________________________________________________________________________________________________
ANDREAS SCHEDEL
BMW MGU
Harman International Automotive Division

Parkring 3
85748 Garching, Germany
Phone: +49 (89) 35870 – 040
Fax: +49 (89) 35870 – 170
Email: ***@harman.com<mailto:***@harman.com>
Web: www.harman.com<http://www.harman.com/>


[Description: Harman_Email_Signature_7_30]

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
Bert Huijben
2017-02-16 14:15:20 UTC
Permalink
The -r123 and @123 functions have completely different behavior.



The @ syntax looks up the url as it was in in revision r123 and fetches the file from there

The -r checks the path as it currently exists, back to the path it had in revision 123
 following copies, renames, etc.

(Note: you can combine these functions to trace a url backwards starting with a specific revision)



So this is most likely the completely documented behavior. See the Subversion book on <http://svnbook.red-bean.com> http://svnbook.red-bean.com



Bert



From: Schedel, Andreas [mailto:***@harman.com]
Sent: donderdag 16 februari 2017 11:31
To: ***@subversion.apache.org
Subject: [Bug] svn export -r <rev> of single file fails if there is a newer revision available than the exported one



SVN server: V1.8.14 (r1692801)



Hi,



When trying to export a dedicated file of a special revision by using

# svn export –r <revision> https://svn-server/trunk/myfile.txt

everything is working fine as long as no newer revision of this file is available in the repository.



If a newer revision is available on the server, the following error message is returned:

svn: E195012: Unable to find repository location for <myfile> in revision <revision>



The “@syntax” is working fine:

# svn export https://svn-server/trunk/myfile.txt@ <https://svnserver/trunk/myfile.txt@%3crevision> <revision>



Is this an already known bug of SVN or perhaps an undocumented feature?



Thanks and best regards



Andreas






Harman Becker Automotive Systems GmbH
Sitz der Gesellschaft: Karlsbad
Amtsgericht Mannheim: HRB-Nr. 361395
GeschÀftsfÌhrung: Michael Mauser, Dr. Udo HÌls
Vorsitzender des Aufsichtsrats: Dr. Frank Groth

__________________________________________________________________________________________________________________

ANDREAS SCHEDEL

BMW MGU

Harman International Automotive Division



Parkring 3

85748 Garching, Germany

Phone: +49 (89) 35870 – 040

Fax: +49 (89) 35870 – 170

Email: <mailto:***@harman.com> ***@harman.com

Web: <http://www.harman.com/> www.harman.com






Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
Loading...