diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-02-18 01:23:22 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-02-18 01:23:22 +0100 |
commit | 2900fcbb73b9f80f9a29adef6b0604e362c215c7 (patch) | |
tree | 680dfa60448e3fcd751929e023dba6fa8063f878 /lib | |
parent | 1a212fb78de65b0e6091b65590b6ea0e17eb57aa (diff) | |
download | sciteco-2900fcbb73b9f80f9a29adef6b0604e362c215c7.tar.gz |
added session.hg and session.vcs macros
* session.hg sets up the buffer session in the current
Mercurial repository
* session.vcs is a convenience macro that may be used in
profiles to enable buffer sessions per repo for all supported
VCS (Git, Hg and SVN)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/session.tes | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/session.tes b/lib/session.tes index 455eaa7..697c350 100644 --- a/lib/session.tes +++ b/lib/session.tes @@ -45,6 +45,16 @@ EU[session.path]Q[$SCITECOCONFIG]/.teco_session } ! Call to set up the session path unique to the + Mercurial repository of the current working directory. + This requires the Mercurial command-line client in $PATH. ! +@[session.hg]{ + ! if there is no Hg repository, session.path is left as it is ! + :EG[session.path]hg root"S + [* EQ[session.path] ZJ -D I/.teco_session ]* + ' +} + +! Call to set up the session path unique to the SVN working copy containing the current working directory. Requires the SVN client v1.7 or later in $PATH. ! @[session.svn]{ @@ -56,3 +66,12 @@ EU[session.path]Q[$SCITECOCONFIG]/.teco_session ' ]* ' } + +! Call to set up the session path unique to the + repository/working copy containing the current working directory + (see above). ! +@[session.vcs]{ + M[session.git] + M[session.hg] + M[session.svn] +} |