2017-08-23 2 views
0

Ich habe eine Revision 58092, ich möchte es HEAD Revision machen. Ich habe 4 Commits im Stammordner nach 58092 Revision. Ich habe versucht, fusionieren svn -r 58092: HEAD, aber ich bin immer FehlerWie man spezifische Revision ein HEAD in SVN macht?

svn: E205001: Try 'svn help merge' for more information 
svn: E205001: Merge source required 
+0

Diese Parameter sind von hinten nach vorne - Sie müssen die Revisionen, die größer als 58092 sind, rückgängig machen und nicht erneut anwenden. Siehe [diese Frage] (https://stackoverflow.com/questions/13330011/how-do-i -revert-an-svn-commit) für mehr. –

Antwort

1
  1. Sie sind in der merge-Befehl das SOURCE Argument fehlt. Dies ist die Signatur des Befehls: merge [-c M[,N...] | -r N:M ...] SOURCE[@REV] [TARGET_WCPATH].

  2. Sie möchten die Version 58092-HEAD nicht auf Ihre Arbeitskopie anwenden, Sie möchten sie entfernen. Versuchen Sie daher -r HEAD: 58092.

Zusammenfassend denke ich, das sollte funktionieren (vorausgesetzt, Sie in der Wurzel Ihrer Niederlassung sind

svn merge -r HEAD:58092 .

Hier sind einige weitere Informationen über SOURCE.

SOURCE specifies the branch from where the changes will be pulled, and 
TARGET_WCPATH specifies a working copy of the target branch to which 
the changes will be applied. Normally SOURCE and TARGET_WCPATH should 
each correspond to the root of a branch. (If you want to merge only a 
subtree, then the subtree path must be included in both SOURCE and 
TARGET_WCPATH; this is discouraged, to avoid subtree mergeinfo.) 

SOURCE is usually a URL. The optional '@REV' specifies both the peg 
revision of the URL and the latest revision that will be considered 
for merging; if REV is not specified, the HEAD revision is assumed. If 
SOURCE is a working copy path, the corresponding URL of the path is 
used, and the default value of 'REV' is the base revision (usually the 
revision last updated to). 

TARGET_WCPATH is a working copy path; if omitted, '.' is generally 
assumed. There are some special cases: 

    - If SOURCE is a URL: 

     - If the basename of the URL and the basename of '.' are the 
     same, then the differences are applied to '.'. Otherwise, 
     if a file with the same basename as that of the URL is found 
     within '.', then the differences are applied to that file. 
     In all other cases, the target defaults to '.'. 

    - If SOURCE is a working copy path: 

     - If the source is a file, then differences are applied to that 
     file (useful for reverse-merging earlier changes). Otherwise, 
     if the source is a directory, then the target defaults to '.'. 
Verwandte Themen