` src project news
+Repository head:
+ 'U' (unmodified) becomes '.' in src status listings.
+
0.4: 2014-11-10
Improvements to src fast-import.
src commit now has an -e option to force editing after -m or -f.
# status.
#
# git hg svn src
-# Unmodified ' ' 'C' ' ' 'U'
+# Unmodified ' ' 'C' ' ' '.'
# Renamed 'R' - - -
# Deleted 'D' 'R' 'D' -
# Copied 'C' - - -
# This is a bit oversimplified; it is meant not as a technical comparison
# but rather to illustrate how bad the letter collisions are. SRC follows
# the majority except for absolutely *not* using a space as a status code;
-# this makes the reports too hard to machine-parse. The designer judged that
-# the semantic collisiion with git's U was less bad than suggesting that an
-# unmodified file had been copied.
+# this makes the reports too hard to machine-parse.
import sys, os, subprocess, time, calendar, stat, glob, shutil
co is a synonym for checkout.
src status ['file'...]
- A = added, U = unmodified, M = modified, ! = missing, ? = not tracked,
+ A = added, . = unmodified, M = modified, ! = missing, ? = not tracked,
I = ignored, L = locked (recover with src checkout). The L
status should only occur if you have used RCS directly on a file.
elif not os.access(fn, os.W_OK):
pairs.append((fn, "L"))
else:
- pairs.append((fn, "U"))
+ pairs.append((fn, "."))
if not args:
for m in registered:
if backend.workfile(m) not in candidates:
co is a synonym for checkout.
src status ['file'...]::
- A = added, U = unmodified, M = modified, ! = missing, ? = not tracked,
+ A = added, . = unmodified, M = modified, ! = missing, ? = not tracked,
I = ignored, L = locked (recover with src checkout). The L
status should only occur if you have used RCS directly on a file.
check "A status check after registration"
src $TESTOPTS commit -m "Another sample" testfile16
-src $TESTOPTS status testfile16 | grep "^U" >/dev/null
-check "U status check after first commit"
+src $TESTOPTS status testfile16 | grep "^[.]" >/dev/null
+check ". status check after first commit"
echo "Add a second line" >>testfile16
src $TESTOPTS status testfile16 | grep "^M" >/dev/null
check "! status check after deletion"
src $TESTOPTS checkout testfile16
-src $TESTOPTS status testfile16 | grep "^U" >/dev/null
-check "U status check after restoration"
+src $TESTOPTS status testfile16 | grep "^[.]" >/dev/null
+check ". status check after restoration"
rm -f $SANDBOX/testfile16,v
src $TESTOPTS status testfile16 | grep "^?" >/dev/null