info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to replace Branch B with Branch A


From: Jim Hyslop
Subject: Re: How to replace Branch B with Branch A
Date: Fri, 28 Oct 2005 22:32:14 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mallikarjun Shirashyad wrote:
> If there are new folders added in Branch A, that is not getting added
> on Branch B. Any ideas?

I just tried it without any problems. What version of CVS are you using
(use 'cvs version' to indicate both the client and server versions).

Note that directories are not version controlled - as soon as you add
the directory, it is available.

Here is the sequence of commands I used to test it (start with a valid,
checked out CVS workspace):

mkdir test_branch_move
cvs add test_branch_move
cd test_branch_move
cvs up -A
echo This is a test>testfile.txt
cvs add testfile.txt
cvs ci -m "This is added on the trunk"
cvs tag -b branchA
echo Some changes>>testfile.txt
cvs ci -m "Some changes on the trunk" testfile.txt
cvs tag -b branchB
cvs up -r branchA
mkdir asubdir
cvs add asubdir
cd asubdir
echo A file in the subdir>subdirfile.txt
cvs add subdirfile.txt
cvs ci -m "Subdirectory added on the branch A"
cd ..
cvs up -r branchB
cvs up -j branchB -j branchA
cat asubdir/subdirfile.txt


The last command printed "A file in the subdir", as expected.

- --
Jim Hyslop
Dreampossible: Better software. Simply.     http://www.dreampossible.ca
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDYt8uLdDyDwyJw+MRAjDwAJ98TKqSr+ifepUjoBC0dEKfpVvKOACgkBJF
FPB3llBgkFVPtuWvkW5og2E=
=UmOM
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]