2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-09 13:33:44 +00:00
|
|
|
About Subversion write access:
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-14 11:46:37 +00:00
|
|
|
Before everything else, you should know how to use Subversion properly.
|
2006-06-28 17:02:56 +00:00
|
|
|
Luckily Subversion comes with excellent documentation.
|
2003-11-05 20:26:15 +00:00
|
|
|
|
2006-06-14 11:46:37 +00:00
|
|
|
svn help
|
2003-11-05 20:26:15 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
shows you the available subcommands,
|
|
|
|
|
|
|
|
svn help <command>
|
|
|
|
|
|
|
|
shows information about the subcommand <command>.
|
|
|
|
|
|
|
|
The most comprehensive manual is the book "Version Control with Subversion"
|
|
|
|
by Ben Collins-Sussman, Brian W. Fitzpatrick and C. Michael Pilato. It can
|
|
|
|
be viewed online at
|
2003-11-05 20:26:15 +00:00
|
|
|
|
2006-06-14 11:46:37 +00:00
|
|
|
http://svnbook.org/
|
2003-11-05 20:26:15 +00:00
|
|
|
|
2006-06-14 11:46:37 +00:00
|
|
|
For more information about the Subversion project, visit
|
2003-11-05 20:26:15 +00:00
|
|
|
|
2006-06-14 11:46:37 +00:00
|
|
|
http://subversion.tigris.org/
|
2003-11-05 20:26:15 +00:00
|
|
|
|
|
|
|
Consult these resources whenever you have problems, they are quite exhaustive.
|
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
What follows now is a basic introduction to Subversion and some MPlayer-specific
|
|
|
|
guidelines. Read it at least once, if you are granted commit privileges to the
|
|
|
|
MPlayer project you are expected to be familiar with these rules.
|
2002-10-24 22:06:09 +00:00
|
|
|
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
I. BASICS:
|
|
|
|
==========
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-07-29 22:16:13 +00:00
|
|
|
0. Get Subversion:
|
|
|
|
|
2008-06-04 00:48:24 +00:00
|
|
|
The MPlayer project server runs Subversion 1.4. For optimal compatibility
|
|
|
|
you should use version 1.4 or later.
|
2006-07-29 22:16:13 +00:00
|
|
|
|
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
1. Checking out the source tree:
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk/ <target>
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
This will put the MPlayer sources into the directory <target>.
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
2. Updating the source tree to the latest revision:
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-21 11:05:57 +00:00
|
|
|
svn update
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
pulls in the latest changes from the repository to your working directory.
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
3. Adding/removing files/directories:
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
svn add <filename/dirname>
|
|
|
|
svn delete <filename/dirname>
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
Subversion needs to get notified of all changes you make to your working
|
|
|
|
directory.
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
4. Showing modifications:
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
svn diff <filename(s)>
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
will show all local modifications in your working directory as unified diff.
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
5. Inspecting the changelog:
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
svn log <filename(s)>
|
2006-06-14 13:10:24 +00:00
|
|
|
|
|
|
|
You may also find viewvc, a web frontend for Subversion, helpful. It's often
|
2006-06-28 17:02:56 +00:00
|
|
|
more comfortable than using 'svn log' and 'svn diff'. Find it here:
|
2006-06-14 13:10:24 +00:00
|
|
|
http://svn.mplayerhq.hu/mplayer/trunk/
|
2004-09-08 15:31:47 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
6. Checking source tree status:
|
|
|
|
|
|
|
|
svn status
|
|
|
|
|
|
|
|
detects all the changes you made and lists what actions will be taken in case
|
|
|
|
of a commit (additions, modifications, deletions, etc.).
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
7. Committing:
|
|
|
|
|
|
|
|
svn update
|
|
|
|
|
|
|
|
Run 'svn update' before committing to make sure there were no changes to the
|
|
|
|
files you worked on in the meantime. Afterwards look at the output of
|
|
|
|
|
|
|
|
svn diff <filename(s)>
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
to doublecheck your changes before committing to avoid trouble later on. All
|
|
|
|
experienced developers do this on each and every commit, no matter how small.
|
|
|
|
Every one of them has been saved from looking like a fool by this many times.
|
|
|
|
It's very easy for stray debug output or cosmetic modifications to slip in,
|
|
|
|
please avoid problems through this extra level of scrutiny.
|
|
|
|
|
2007-04-22 15:11:47 +00:00
|
|
|
For cosmetics-only commits you should get (almost) empty output from
|
|
|
|
|
2008-06-17 11:13:36 +00:00
|
|
|
svn diff --diff-cmd diff -x '-duwbBE' <filename(s)>
|
2007-04-22 15:11:47 +00:00
|
|
|
|
2006-08-28 18:46:31 +00:00
|
|
|
Also check the output of
|
|
|
|
|
|
|
|
svn status
|
|
|
|
|
2006-09-04 09:50:11 +00:00
|
|
|
to make sure you did not forget to 'svn add' some files (they will be marked
|
2006-08-28 18:46:31 +00:00
|
|
|
with '?').
|
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
Once you have made sure everything is fine
|
|
|
|
|
|
|
|
svn commit <filename(s)>
|
|
|
|
|
|
|
|
propagates your stuff to the repository. If you have made several independent
|
|
|
|
changes, commit them separately, not at the same time.
|
|
|
|
|
|
|
|
When prompted for a password, type the password you got assigned by the
|
|
|
|
project admins. By default, Subversion caches all authentication tokens.
|
2007-03-12 17:35:46 +00:00
|
|
|
This behavior can be disabled by setting both 'store-passwords' and
|
2006-06-28 17:02:56 +00:00
|
|
|
'store-auth-creds' to "no" in ~/.subversion/config. You might need to remove
|
|
|
|
previous cache files, which are located in ~/.subversion/auth, by hand.
|
|
|
|
|
|
|
|
You will be prompted for a log message in an editor, which is either specified
|
|
|
|
by --editor-cmd on the command line, set in your personal configuration file
|
|
|
|
(~/.subversion/config) or set by one of the following environment variables:
|
|
|
|
SVN_EDITOR, VISUAL or EDITOR.
|
|
|
|
|
|
|
|
Log messages should be concise but descriptive. Explain why you made a change,
|
|
|
|
what you did will be obvious from the changes themselves most of the time.
|
|
|
|
Saying just "bug fix" or "10l" is bad. Remember that people of varying skill
|
|
|
|
levels look at and educate themselves while reading through your code. Don't
|
|
|
|
include filenames in log messages, Subversion provides that information.
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-08-09 11:03:11 +00:00
|
|
|
8. Renaming/moving/copying files or contents of files:
|
2006-06-28 17:02:56 +00:00
|
|
|
|
2006-08-13 08:54:16 +00:00
|
|
|
svn move/copy <source> <destination>
|
2006-06-28 17:02:56 +00:00
|
|
|
svn commit <source> <destination>
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-08-13 08:54:16 +00:00
|
|
|
Do not move, rename or copy files of which you are not the maintainer without
|
|
|
|
discussing it on the mplayer-dev-eng mailing list first!
|
2006-08-09 11:03:11 +00:00
|
|
|
|
2006-08-13 08:54:16 +00:00
|
|
|
Never copy or move a file by using 'svn delete' and 'svn add'. Always use
|
|
|
|
'svn move' or 'svn copy' instead in order to preserve history and minimize
|
|
|
|
the size of diffs.
|
2006-08-09 11:03:11 +00:00
|
|
|
|
2006-08-13 08:54:16 +00:00
|
|
|
To split a file, use 'svn copy' and remove the unneeded lines from each file.
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2002-10-24 22:06:09 +00:00
|
|
|
Don't do a lot of cut'n'paste from one file to another without a very good
|
|
|
|
reason and discuss it on the mplayer-dev-eng mailing list first. It will make
|
2006-06-28 17:02:56 +00:00
|
|
|
those changes hard to trace.
|
2002-03-31 03:32:42 +00:00
|
|
|
|
2002-10-24 22:06:09 +00:00
|
|
|
Such actions are useless and treated as cosmetics in 99% of cases,
|
|
|
|
so try to avoid them.
|
2003-11-05 20:26:15 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2003-11-05 20:26:15 +00:00
|
|
|
9. Reverting broken commits
|
|
|
|
|
2006-08-13 22:14:32 +00:00
|
|
|
There are 2 ways to reverse a change, they differ significantly in what they
|
2007-03-12 17:35:46 +00:00
|
|
|
do to the repository.
|
2006-08-13 22:14:32 +00:00
|
|
|
The recommit old method:
|
|
|
|
svn merge
|
|
|
|
svn ci <file>
|
2007-03-12 17:35:46 +00:00
|
|
|
This simply changes the file(s) back to their old version locally and then
|
|
|
|
the change is committed as if it were a new change.
|
2006-08-13 22:14:32 +00:00
|
|
|
The svn copy method
|
|
|
|
svn rm <file>
|
|
|
|
svn cp -r<good revision> svn://svn.mplayerhq.hu/mplayer/trunk/[<path>/]<file> <file>
|
|
|
|
svn ci <file>
|
|
|
|
This simply removes the file and then copies the last good version with
|
2007-03-12 17:35:46 +00:00
|
|
|
its history over it. This method can only be used to revert the n last
|
|
|
|
commits but not to revert a bad commit in the middle of its history.
|
2006-08-13 22:14:32 +00:00
|
|
|
Neither method will change the history, checking out an old version will
|
|
|
|
always return exactly that revision with all its bugs and features. The
|
|
|
|
difference is that with the svn copy method the broken commit will not be
|
2007-02-18 11:47:28 +00:00
|
|
|
part of the directly visible history of the revisions after the reversal
|
|
|
|
So if the change was completely broken like reindenting a file against the
|
|
|
|
maintainers decision, or a change which mixed functional and cosmetic
|
2007-02-27 17:06:36 +00:00
|
|
|
changes then it is better if it is not part of the visible history as it
|
2007-03-12 17:35:46 +00:00
|
|
|
would make it hard to read, review and would also break svn annotate.
|
2006-08-13 22:14:32 +00:00
|
|
|
For the example of a change which mixed functional and cosmetic parts they
|
2007-02-18 11:47:28 +00:00
|
|
|
should of course be committed again after the reversal but separately, so one
|
2007-03-12 17:35:46 +00:00
|
|
|
change with the functional stuff and one with the cosmetics.
|
2006-08-13 22:14:32 +00:00
|
|
|
OTOH if the change which you want to reverse was simply buggy but not
|
|
|
|
totally broken then it should be reversed with svn merge as otherwise
|
2007-03-12 17:35:46 +00:00
|
|
|
the fact that the change was bad would be hidden.
|
2006-08-13 22:14:32 +00:00
|
|
|
One method to decide which reversal method is best is to ask yourself
|
2007-02-27 17:06:36 +00:00
|
|
|
if there is any value in seeing the whole bad change and its removal
|
2007-03-12 15:20:10 +00:00
|
|
|
in SVN vs. just seeing a comment that says what has been reversed while
|
2007-02-18 11:47:28 +00:00
|
|
|
the actual change does not clutter the immediately visible history and
|
2006-08-13 22:14:32 +00:00
|
|
|
svn annotate.
|
|
|
|
If you are even just slightly uncertain how to revert something then ask on
|
2007-02-27 17:06:36 +00:00
|
|
|
the mplayer-dev-eng mailing list.
|
2003-11-05 20:26:15 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
10. Reverting local changes
|
2005-02-25 03:39:26 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
svn revert <filename(s)>
|
2005-02-25 03:39:26 +00:00
|
|
|
|
2006-06-14 13:10:24 +00:00
|
|
|
In case you made a lot of local changes to a file and want to start over
|
2006-06-28 17:02:56 +00:00
|
|
|
with a fresh checkout of that file, you can use 'svn revert <filename(s)>'.
|
2006-06-14 13:10:24 +00:00
|
|
|
NOTE: This has nothing to do with reverting changes on the Subversion
|
|
|
|
server! It only reverts changes that were not committed yet. If you need
|
|
|
|
to revert a broken commit, see 9.
|
2003-11-05 20:26:15 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
11. Changing commit messages
|
2006-06-21 09:42:43 +00:00
|
|
|
|
|
|
|
svn propedit svn:log --revprop -r <revision>
|
|
|
|
|
|
|
|
If your commit message is too short or not explanatory enough, you can edit
|
2006-06-29 07:01:37 +00:00
|
|
|
it afterwards with 'svn propedit'.
|
2006-06-21 09:42:43 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
Contact the project admins <root at mplayerhq dot hu> if you have technical
|
2006-06-14 13:10:24 +00:00
|
|
|
problems with the Subversion server.
|
2002-10-24 22:06:09 +00:00
|
|
|
|
2001-10-14 19:18:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
II. POLICY / RULES:
|
|
|
|
===================
|
|
|
|
|
2004-09-08 15:31:47 +00:00
|
|
|
1. You must not commit code which breaks MPlayer! (Meaning unfinished but
|
2002-10-24 22:06:09 +00:00
|
|
|
enabled code which breaks compilation or compiles but does not work.)
|
2004-09-08 15:31:47 +00:00
|
|
|
You can commit unfinished stuff (for testing etc), but it must be disabled
|
|
|
|
(#ifdef etc) by default so it does not interfere with other developers'
|
|
|
|
work.
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2002-10-24 22:06:09 +00:00
|
|
|
2. You don't have to over-test things. If it works for you, and you think it
|
|
|
|
should work for others, too, then commit. If your code has problems
|
|
|
|
(portability, exploits compiler bugs, unusual environment etc) they will be
|
|
|
|
reported and eventually fixed.
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2004-09-08 15:31:47 +00:00
|
|
|
3. Do not commit unrelated changes together, split them into self-contained
|
2007-03-12 17:38:32 +00:00
|
|
|
pieces, but not smaller. Do not split commits by files or directories,
|
|
|
|
keep related changes together.
|
2001-10-14 19:18:02 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2007-12-16 16:37:33 +00:00
|
|
|
4. Do not change behavior of the program (renaming options etc) or remove
|
|
|
|
functionality from the code without approval in a discussion on the
|
|
|
|
mplayer-dev-eng mailing list.
|
2004-09-08 15:31:47 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2007-12-16 16:37:33 +00:00
|
|
|
5. Do not commit changes which change behavior, defaults etc, without asking
|
|
|
|
first. The same applies to compiler warning fixes, trivial looking fixes and
|
|
|
|
to code maintained by other developers. We usually have a reason for doing
|
|
|
|
things the way we do. Send your changes as patches to the mplayer-dev-eng
|
|
|
|
mailing list, and if the code maintainers say OK, you may commit. This does
|
|
|
|
not apply to files you wrote and/or maintain.
|
2004-09-08 15:31:47 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2004-09-08 15:31:47 +00:00
|
|
|
6. We refuse source indentation and other cosmetic changes if they are mixed
|
|
|
|
with functional changes, such commits will be rejected and removed. Every
|
|
|
|
developer has his own indentation style, you should not change it. Of course
|
|
|
|
if you (re)write something, you can use your own style... (Many projects
|
|
|
|
force a given indentation style - we don't.) If you really need to make
|
|
|
|
indentation changes (try to avoid this), separate them strictly from real
|
|
|
|
changes.
|
2004-03-15 01:37:36 +00:00
|
|
|
|
|
|
|
NOTE: If you had to put if(){ .. } over a large (> 5 lines) chunk of code,
|
2004-09-08 15:31:47 +00:00
|
|
|
do NOT change the indentation of the inner part (don't move it to the right)!
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2004-09-08 15:31:47 +00:00
|
|
|
7. Always fill out the commit log message. Describe in a few lines what you
|
|
|
|
changed and why. You can refer to mailing list postings if you fix a
|
|
|
|
particular bug. Comments such as "fixed!" or "Changed it." are unacceptable.
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2004-09-08 15:31:47 +00:00
|
|
|
8. If you apply a patch by someone else, include the name and email address in
|
2007-12-16 16:37:33 +00:00
|
|
|
the log message. Since the mplayer-cvslog mailing list is publicly archived
|
|
|
|
you should add some spam protection to the email address. Send an answer to
|
|
|
|
mplayer-dev-eng (or wherever you got the patch from) saying that you applied
|
|
|
|
the patch. If the patch contains a documentation change, commit that as
|
|
|
|
well; do not leave it to the documentation maintainers.
|
2004-09-08 15:31:47 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2004-09-08 15:31:47 +00:00
|
|
|
9. Do NOT commit to code actively maintained by others without permission. Send
|
|
|
|
a patch to mplayer-dev-eng instead.
|
2004-04-02 23:36:06 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-09 13:33:44 +00:00
|
|
|
10. Subscribe to the mplayer-cvslog mailing list. The diffs of all commits
|
2004-04-02 23:36:06 +00:00
|
|
|
are sent there and reviewed by all the other developers. Bugs and possible
|
|
|
|
improvements or general questions regarding commits are discussed there. We
|
|
|
|
expect you to react if problems with your code are uncovered.
|
2004-03-15 01:37:36 +00:00
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2004-09-08 15:31:47 +00:00
|
|
|
11. Update the documentation if you change behavior or add features. If you are
|
|
|
|
unsure how best to do this, send a patch to mplayer-docs, the documentation
|
|
|
|
maintainers will review and commit your stuff.
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-11-08 22:21:50 +00:00
|
|
|
12. Always send a patch to the mplayer-dev-eng mailing list before committing
|
|
|
|
if you suspect that the change is going to be controversial. Based on past
|
|
|
|
experience, these changes are likely to be controversial:
|
|
|
|
- feature removal, even if obsolete
|
|
|
|
- changes to "special" output messages (like the "Core dumped ;)" message)
|
|
|
|
- verbosity changes from default (info) level
|
2007-03-12 17:35:46 +00:00
|
|
|
- changes to "historical" parts of docs and web pages
|
2006-11-08 22:21:50 +00:00
|
|
|
- use of internal or external libraries
|
2008-06-03 01:37:43 +00:00
|
|
|
- reverting commits from other developers
|
2008-06-03 17:16:38 +00:00
|
|
|
- making the spelling of words consistent without actually correcting
|
2008-06-03 16:58:49 +00:00
|
|
|
any spelling errors.
|
2006-11-08 22:21:50 +00:00
|
|
|
|
|
|
|
|
2007-12-16 16:37:33 +00:00
|
|
|
13. Try to keep important discussions and requests (also) on the mplayer-dev-eng
|
|
|
|
mailing list, so that all developers can benefit from them.
|
2006-11-08 22:21:50 +00:00
|
|
|
IRC is good for quick discussions, but nobody is there 24/7.
|
|
|
|
|
|
|
|
|
2004-04-02 02:15:41 +00:00
|
|
|
Also read DOCS/tech/patches.txt !!!!
|
2002-03-31 03:32:42 +00:00
|
|
|
|
2002-10-24 22:06:09 +00:00
|
|
|
We think our rules are not too hard. If you have comments, contact us.
|
|
|
|
|
|
|
|
|
2001-12-01 23:32:46 +00:00
|
|
|
|
2006-06-26 19:03:51 +00:00
|
|
|
III. Beginners Guide
|
2001-12-01 23:32:46 +00:00
|
|
|
====================
|
2006-06-26 19:04:59 +00:00
|
|
|
|
|
|
|
The typical flow of development would be:
|
|
|
|
|
|
|
|
1. Check out the source:
|
|
|
|
|
|
|
|
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk/ devel
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-26 19:04:59 +00:00
|
|
|
2. Make your changes.
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-26 19:04:59 +00:00
|
|
|
3. Create a patch:
|
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
Run 'svn diff' from the root of the source tree, like this:
|
2006-06-26 19:04:59 +00:00
|
|
|
|
|
|
|
cd devel
|
|
|
|
svn diff > ../my_changes.patch
|
|
|
|
|
|
|
|
If you have made several changes, but only want to submit one for review
|
|
|
|
by other developers, you can specify the filename(s), for example:
|
|
|
|
|
|
|
|
svn diff mplayer.c > ../major_cleanup.patch
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-26 19:04:59 +00:00
|
|
|
4. Check the patch:
|
|
|
|
|
|
|
|
Check out another, clean source tree and verify your patch:
|
|
|
|
|
|
|
|
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk/ clean
|
|
|
|
cd clean
|
|
|
|
patch -p0 --dry-run < ../my_changes.patch
|
|
|
|
|
|
|
|
If there are no errors, you can apply your patch:
|
|
|
|
|
|
|
|
patch -p0 < ../my_changes.patch
|
|
|
|
|
|
|
|
After that, verify that MPlayer still builds correctly with your patch
|
|
|
|
applied. Also, be sure that your patch meets our policy as described in
|
|
|
|
section II, specifically rules 1 to 6, before you continue submitting
|
|
|
|
the patch.
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-26 19:04:59 +00:00
|
|
|
5. Submit the patch:
|
|
|
|
|
|
|
|
Send an e-mail to the mplayer-dev-eng mailing list. Describe what your
|
|
|
|
patch does and why, and attach the patch file for review by others.
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-26 19:04:59 +00:00
|
|
|
6. During the review process, incorporate all suggested fixes. Go to step 2
|
|
|
|
repeatedly until there is nothing more to do for step 6. Of course, if
|
|
|
|
you don't agree with certain suggestions, things can be discussed on
|
|
|
|
the mailing list in a polite manner.
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-26 19:04:59 +00:00
|
|
|
7. Commit the patch:
|
|
|
|
|
|
|
|
If your patch is accepted, double check if your source tree contains the
|
2006-06-28 17:02:56 +00:00
|
|
|
most recent version of your patch with 'svn diff'! After verifying that
|
|
|
|
you met these conditions, commit with:
|
2006-06-26 19:04:59 +00:00
|
|
|
|
2006-06-28 17:02:56 +00:00
|
|
|
svn commit <filename(s)>
|
2006-06-26 19:04:59 +00:00
|
|
|
|
|
|
|
Go to step 2 ad infinitum until MPlayer is the perfect media player ;)
|
|
|
|
|
2006-06-28 17:03:16 +00:00
|
|
|
|
2006-06-26 19:04:59 +00:00
|
|
|
Note: If you are listed as the maintainer for a particular piece of code,
|
|
|
|
you can skip step 5 and 6 if your patch _only_ applies to the code you
|
|
|
|
maintain. If it touches other code or is otherwise very intrusive, please
|
|
|
|
post it to mplayer-dev-eng first.
|