Commit MetaInfo

Revision24aef0cfac206fbc4c50a9f682a9c5d88471bc8d (tree)
Time2009-10-03 01:57:44
AuthorFace
CommiterFace

Log Message

Finished download branch selection.

Change Summary

Incremental Difference

diff -r b3e116a80515 -r 24aef0cfac20 src/COIClient/ClientForm.cs
--- a/src/COIClient/ClientForm.cs Tue Sep 29 08:23:13 2009 +0200
+++ b/src/COIClient/ClientForm.cs Fri Oct 02 18:57:44 2009 +0200
@@ -524,14 +524,15 @@
524524
525525 private void GetRemoteList()
526526 {
527- //Identify remote repo to be valid by means of getting id of "local://localhost" tag
528- var call = new Executor("identify --debug -ir \"local|//localhost\" \"" + remoteDatabaseRepo + '"', databaseRepo, handle);
527+ //Identify remote repo to be valid by means of getting id of branch or "local://localhost" tag
528+ var branch = branchButton.Text == "tip" ? "local|//localhost" : branchButton.Text;
529+ var call = new Executor("identify --debug -ir \"" + branch + "\" \"" + remoteDatabaseRepo + '"', databaseRepo, handle);
529530 if (call.Execute() != 0)
530531 {
531532 Invoke(new MethodInvoker(
532533 () =>
533534 MessageBox.Show(
534- "\"" + remoteDatabaseRepo + "\" is no COI - local://localhost tag is missing!",
535+ "\"" + remoteDatabaseRepo + "\" can't be read - \""+branch+"\" tag is missing!",
535536 "Remote COI", MessageBoxButtons.OK, MessageBoxIcon.Error)));
536537 return;
537538 }
@@ -549,7 +550,7 @@
549550 return;
550551 }
551552
552- //Update database repo to remote local tag revision
553+ //Update database repo to remote branch
553554 call = new Executor("update -Cr " + revision, databaseRepo, handle);
554555 if (call.Execute() != 0)
555556 {
diff -r b3e116a80515 -r 24aef0cfac20 src/COIClient/TODO.txt
--- a/src/COIClient/TODO.txt Tue Sep 29 08:23:13 2009 +0200
+++ b/src/COIClient/TODO.txt Fri Oct 02 18:57:44 2009 +0200
@@ -17,7 +17,7 @@
1717
1818 1.1.0 - "Feature complete"
1919 ==========================
20- [ ] Enhance download with branch selection
20+ [X] Enhance download with branch selection
2121 [ ] Upload feature.
2222
2323 1.2.0
Show on old repository browser