Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation


by xdg (Monsignor)
on Aug 28, 2006 at 13:12 UTC ( #569977=note: print w/replies, xml ) Need Help??

in reply to SVK

In my opinion, the real power of SVK is that it gives you personal version control, while integrating easily with a master repository. It does this by letting you make a local branch that you can check-in to without affecting the master repository.

svk cp // //local/ svn co //local/

From that point, you can check-in your work incrementally while working totally offline on your own private branch. This is pretty important if you practice test-driven development -- after each new test passes, check in the code.

After reconnecting to the network, you can pull down changes from the master, resolve any conflicts, and push (merge) your changes back upstream.

# while on the network svk pull # go offline and do your work # reconnect to network and get any updates svk pull # resolve conflicts # merge changes back upstream svk push

I often work on my laptop on planes or other places without connectivity and this rocks. Even when I'm on the network, I generally use a local branch as it's really fast to check-in. It's like coding with a safety net.


Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://569977]
[marinersk]: choroba++
[choroba]: it's a long running test, so it's normally skipped unless an env var is set
[choroba]: nobody has been bothered to set the variable in the last 3 years
[marinersk]: sub newtest{my $expected_result = &target('foo'); my $actual_result = &target('foo'); if ($actual_result eq $expected_result) { &tdd_success(); } else { &tdd_fail(); } } # Test works after three years!
[choroba]: or nobody bothered...
[choroba]: The problem was bigger, as the test tried to call a method that didn't exist anymore
[marinersk]: :: ducking ::
[choroba]: because, someone renamed the method, but didn't notice it was used in the test, as the test was skipped
[marinersk]: Well, if the method doesn't exist, it would be hard to pass the test.
[choroba]: later, someone removed the new method, as all its usage places were safe, but didn't notice the test still used the old name

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2017-05-25 15:08 GMT
Find Nodes?
    Voting Booth?