Skip to content

Commit

Permalink
Make client.py print what was pulled from CVS/hg. b=433390 r=jorendor…
Browse files Browse the repository at this point in the history
…ff, ted.mielczarek
  • Loading branch information
dbaron committed Jun 2, 2008
1 parent 1a06f59 commit 46c5bad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import os
import sys
import datetime
from optparse import OptionParser

topsrcdir = os.path.dirname(__file__)
Expand Down Expand Up @@ -47,17 +48,21 @@ def do_hg_pull(dir, repository, hg):
if repository is not None:
cmd.append(repository)
check_call_noisy(cmd)
check_call([hg, 'parent', '-R', fulldir,
'--template=Updated to revision {node}.\n'])

def do_cvs_checkout(modules, tag, cvsroot, cvs):
"""Check out a CVS directory.
modules is a list of directories to check out, e.g. ['nsprpub']
"""
for module in modules:
(parent, leaf) = os.path.split(module)
print "CVS checkout begin: " + datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC")
check_call_noisy([cvs, '-d', cvsroot,
'checkout', '-P', '-r', tag, '-d', leaf,
'mozilla/%s' % module],
cwd=os.path.join(topsrcdir, parent))
print "CVS checkout end: " + datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC")

o = OptionParser(usage="client.py [options] checkout")
o.add_option("-m", "--mozilla-repo", dest="mozilla_repo",
Expand Down

0 comments on commit 46c5bad

Please sign in to comment.